forked from Mirrors/openclonk
win32: Only set mape cmake property if building mape
parent
f1c937a143
commit
0e11bff939
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue