From d58a037512682db6480b80513162143defb3061a Mon Sep 17 00:00:00 2001 From: Spp Date: Thu, 27 Jun 2013 10:47:30 +0200 Subject: Build: Set _BUILD_DIRECTIVE even if the compiler is not properly detected --- cmake/platform/unix/settings.cmake | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmake/platform/unix') 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() -- cgit v1.2.3