aboutsummaryrefslogtreecommitdiff
path: root/cmake/platform/unix/settings.cmake
diff options
context:
space:
mode:
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()