From 2f26170a2a661eaafb5acbaf7b5bd2aeb998c72b Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 26 Aug 2020 12:44:40 +0200 Subject: [PATCH] macOS: don't create bundles when using X11 --- CMake/fl_create_example.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMake/fl_create_example.cmake b/CMake/fl_create_example.cmake index 9d6360215..dd4e1bc42 100644 --- a/CMake/fl_create_example.cmake +++ b/CMake/fl_create_example.cmake @@ -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})