On Tuesday, August 07, 2012 13:45:37 J Decker wrote:
> which means revisiting each and every project that generates an
> exectuable could even make a add_program macro or something that
> would handle it.
Since CMake 2.8.8 you can set the variable CMAKE_WIN32_EXECUTABLE to set the
default val
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 wrote:
> No, but it's easy to do the inverse:
>
> if(is_win32)
> set(exe_type WIN32)
> // flag adju
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,
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.or