aboutsummaryrefslogtreecommitdiff
path: root/cmake/platform/unix/settings.cmake
diff options
context:
space:
mode:
authorSpp <spp@jorge.gr>2013-06-27 10:47:30 +0200
committerSpp <spp@jorge.gr>2013-06-27 10:47:30 +0200
commitd58a037512682db6480b80513162143defb3061a (patch)
treedea6345cb243a577e6e4bd7947efb97eca7ac58d /cmake/platform/unix/settings.cmake
parent75f535c65e99bc6edb296cea18795a829655ef9a (diff)
Build: Set _BUILD_DIRECTIVE even if the compiler is not properly detected
Diffstat (limited to 'cmake/platform/unix/settings.cmake')
-rw-r--r--cmake/platform/unix/settings.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/platform/unix/settings.cmake b/cmake/platform/unix/settings.cmake
index a851c8acf7a..b0c0d260623 100644
--- a/cmake/platform/unix/settings.cmake
+++ b/cmake/platform/unix/settings.cmake
@@ -32,10 +32,13 @@ add_custom_target(uninstall
)
message(STATUS "UNIX: Created uninstall target")
+message(STATUS "UNIX: Detected compiler: ${CMAKE_C_COMPILER}")
if(CMAKE_C_COMPILER MATCHES "gcc")
include(${CMAKE_SOURCE_DIR}/cmake/compiler/gcc/settings.cmake)
elseif(CMAKE_C_COMPILER MATCHES "icc")
include(${CMAKE_SOURCE_DIR}/cmake/compiler/icc/settings.cmake)
elseif(CMAKE_C_COMPILER MATCHES "clang")
include(${CMAKE_SOURCE_DIR}/cmake/compiler/clang/settings.cmake)
+else()
+add_definitions(-D_BUILD_DIRECTIVE='"${CMAKE_BUILD_TYPE}"')
endif()