]> Creatis software - bbtk.git/blobdiff - samples/SampleInterpreter/CMakeLists.txt
*** empty log message ***
[bbtk.git] / samples / SampleInterpreter / CMakeLists.txt
index be4949b554ceb3fc916746f40f2cbeb556c00b97..045e79b405902214d85b97a231b009afaf0d54d0 100644 (file)
@@ -13,8 +13,9 @@ SET(SAMPLE bbtkSampleInterpreter)
 
 # main 
 ADD_EXECUTABLE(${SAMPLE} ${SAMPLE})
-SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console )
-
+IF(WIN32)
+  SET_TARGET_PROPERTIES(${SAMPLE} PROPERTIES LINK_FLAGS /subsystem:console )
+ENDIF(WIN32)
 # Link with bbtk
 TARGET_LINK_LIBRARIES(${SAMPLE} ${BBTK_LIBRARIES})