diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 3f5a7c4f..aaa71efd 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -26,14 +26,14 @@ set(WINDOWS_BINARIES boing gears heightmap splitview triangle wave) if(MSVC) # Tell MSVC to use main instead of WinMain for Windows subsystem executables - set_target_properties(${WINDOWS_BINARIES} - PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup") + set_target_properties(${WINDOWS_BINARIES} PROPERTIES + LINK_FLAGS "/ENTRY:mainCRTStartup") endif(MSVC) if(CYGWIN) # Set cross-compile and subsystem compile and link flags - set_target_properties(${WINDOWS_BINARIES} - PROPERTIES COMPILE_FLAGS "-mno-cygwin" - PROPERTIES LINK_FLAGS "-mno-cygwin -mwindows") + set_target_properties(${WINDOWS_BINARIES} PROPERTIES + COMPILE_FLAGS "-mno-cygwin" + LINK_FLAGS "-mno-cygwin -mwindows") endif(CYGWIN) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 085b6b67..f55a1900 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -35,17 +35,17 @@ set(CONSOLE_BINARIES defaults events fsaa fsfocus iconify joysticks listmodes if(MSVC) # Tell MSVC to use main instead of WinMain for Windows subsystem executables - set_target_properties(${WINDOWS_BINARIES} ${CONSOLE_BINARIES} - PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup") + set_target_properties(${WINDOWS_BINARIES} ${CONSOLE_BINARIES} PROPERTIES + LINK_FLAGS "/ENTRY:mainCRTStartup") endif(MSVC) if(CYGWIN) # Set cross-compile and subsystem compile and link flags - set_target_properties(${WINDOWS_BINARIES} ${CONSOLE_BINARIES} - PROPERTIES COMPILE_FLAGS "-mno-cygwin") - set_target_properties(${WINDOWS_BINARIES} - PROPERTIES LINK_FLAGS "-mno-cygwin -mwindows") - set_target_properties(${CONSOLE_BINARIES} - PROPERTIES LINK_FLAGS "-mno-cygwin -mconsole") + set_target_properties(${WINDOWS_BINARIES} ${CONSOLE_BINARIES} PROPERTIES + COMPILE_FLAGS "-mno-cygwin") + set_target_properties(${WINDOWS_BINARIES} PROPERTIES + LINK_FLAGS "-mno-cygwin -mwindows") + set_target_properties(${CONSOLE_BINARIES} PROPERTIES + LINK_FLAGS "-mno-cygwin -mconsole") endif(CYGWIN)