which means revisiting each and every project that generates an exectuable.... could even make a add_program macro or something that would handle it.
On Tue, Aug 7, 2012 at 11:23 AM, David Cole <[email protected]> wrote: > No, but it's easy to do the inverse: > > if(is_win32) > set(exe_type WIN32) > // flag adjustment either here... > else() > set(exe_type "") > ... > endif() > > add_executable(myExe ${exe_type} ${source_files}) > > if(is_win32) > // or here with setting target properties... > else() > ... > endif() > > > On Fri, Aug 3, 2012 at 9:41 PM, J Decker <[email protected]> wrote: >> There's no way to set additional flags to compile if the >> add_exectuable is WIN32 or console? >> -- >> >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the CMake FAQ at: >> http://www.cmake.org/Wiki/CMake_FAQ >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
