win32: Only set mape cmake property if building mape

issue1247
Günther Brammer 2014-12-25 21:04:43 +01:00
parent f1c937a143
commit 0e11bff939
1 changed files with 5 additions and 6 deletions

View File

@ -1141,12 +1141,6 @@ if(MSVC)
set_property(TARGET openclonk APPEND PROPERTY LINK_FLAGS "/MANIFEST:NO")
endif()
# Suppress the console window for mape even though only a main() and not
# a WinMain() entry point is provided.
if(MINGW)
set_target_properties(mape PROPERTIES LINK_FLAGS -mwindows)
endif()
############################################################################
# Precompiled header support, part 2 (post-target)
############################################################################
@ -1344,6 +1338,11 @@ if (WIN32)
target_link_libraries(c4script ws2_32 winmm)
if(MAPE_GTK_FOUND)
target_link_libraries(mape winmm)
# Suppress the console window for mape even though only a main() and not
# a WinMain() entry point is provided.
if(MINGW)
set_target_properties(mape PROPERTIES LINK_FLAGS -mwindows)
endif()
endif()
endif()