From 188a84a893ed2381e5c1b4f40bfd8e0f9cb0e4e2 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Sun, 2 Jan 2011 19:44:04 +0100 Subject: [PATCH] Cmake: use build postfix --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 069c859a..a592c8e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,6 +60,11 @@ check_function_exists(ftime HAVE_FTIME) check_function_exists(timegm HAVE_TIMEGM) check_function_exists(rint HAVE_RINT) +SET(CMAKE_DEBUG_POSTFIX "d" CACHE STRING "add a postfix, usually d on windows") +SET(CMAKE_RELEASE_POSTFIX "" CACHE STRING "add a postfix, usually empty on windows") +SET(CMAKE_RELWITHDEBINFO_POSTFIX "rd" CACHE STRING "add a postfix, usually empty on windows") +SET(CMAKE_MINSIZEREL_POSTFIX "s" CACHE STRING "add a postfix, usually empty on windows") + # isnan might not be real symbol, so can't check using function_exists check_cxx_source_compiles( "#include