ENDIF (BBTK_COMPILE_ERROR_MESSAGES)
#-----------------------------------------------------------------------------
-IF (APPLE)
+IF(APPLE)
ADD_DEF(MACOSX)
-ENDIF(APPLE)
+ELSE(APPLE)
+ IF("${CMAKE_SYSTEM}" MATCHES "Linux")
+ ADD_DEF(LINUX)
+ ELSE("${CMAKE_SYSTEM}" MATCHES "Linux")
+ IF(WIN32)
+ ADD_DEF(WIN32)
+ ELSE(WIN32)
+ MESSAGE(FATAL_ERROR "${CMAKE_SYSTEM} unsupported ! Build at your own risks ! (remove this line from kernel/cmake/BBTKAddDefinitions.cmake)")
+ ENDIF(WIN32)
+ ENDIF("${CMAKE_SYSTEM}" MATCHES "Linux")
+ENDIF(APPLE)
#-----------------------------------------------------------------------------