macOS: don't create bundles when using X11

This commit is contained in:
Albrecht Schlosser 2020-08-26 12:44:40 +02:00
parent d94496582c
commit 2f26170a2a
1 changed files with 6 additions and 1 deletions

View File

@ -106,7 +106,12 @@ macro (CREATE_EXAMPLE NAME SOURCES LIBRARIES)
# add executable target and set properties (all platforms)
##############################################################################
add_executable (${TARGET_NAME} WIN32 MACOSX_BUNDLE ${srcs} ${ICON_PATH})
if (MAC_BUNDLE)
add_executable (${TARGET_NAME} MACOSX_BUNDLE ${srcs} ${ICON_PATH})
else ()
add_executable (${TARGET_NAME} WIN32 ${srcs} ${ICON_PATH})
endif (MAC_BUNDLE)
set_target_properties (${TARGET_NAME} PROPERTIES OUTPUT_NAME ${NAME})
target_link_libraries (${TARGET_NAME} ${LIBRARIES})