X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=samples%2FSampleOutputObserver%2FCMakeLists.txt;h=a72b24d1953312816ae3684a5aecf5b3c3161a68;hb=e249b08904f1f8a4349706e74768ed47a3e17aee;hp=2bcb211f529286c5e75997b19bcb3728b043d101;hpb=43b1503553c17d85b0e7aa356468fb8527e2bb68;p=bbtk.git diff --git a/samples/SampleOutputObserver/CMakeLists.txt b/samples/SampleOutputObserver/CMakeLists.txt index 2bcb211..a72b24d 100644 --- a/samples/SampleOutputObserver/CMakeLists.txt +++ b/samples/SampleOutputObserver/CMakeLists.txt @@ -18,7 +18,8 @@ CREA_FIND_AND_USE_LIBRARIES() # main ADD_EXECUTABLE(${SAMPLE} WIN32 ${SAMPLE}) -SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console ) - +IF(WIN32) + SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console ) +ENDIF(WIN32) # Link against bbwx TARGET_LINK_LIBRARIES(${SAMPLE} ${bbwx_LIBRARIES} ${BBTK_LIBRARIES} ${WXWIDGETS_LIBRARIES})