mirror of https://github.com/fltk/fltk
macOS: don't create bundles when using X11
This commit is contained in:
parent
d94496582c
commit
2f26170a2a
|
@ -106,7 +106,12 @@ macro (CREATE_EXAMPLE NAME SOURCES LIBRARIES)
|
||||||
# add executable target and set properties (all platforms)
|
# 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})
|
set_target_properties (${TARGET_NAME} PROPERTIES OUTPUT_NAME ${NAME})
|
||||||
target_link_libraries (${TARGET_NAME} ${LIBRARIES})
|
target_link_libraries (${TARGET_NAME} ${LIBRARIES})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue