]> git.mxchange.org Git - simgear.git/commitdiff
Cmake: use build postfix
authorFrederic Bouvier <fredfgfs01@free.fr>
Sun, 2 Jan 2011 18:44:04 +0000 (19:44 +0100)
committerFrederic Bouvier <fredfgfs01@free.fr>
Sun, 2 Jan 2011 18:44:04 +0000 (19:44 +0100)
CMakeLists.txt

index 069c859a69a6cef892f9b05fceac3ee29f5b090b..a592c8e93a4cf711b03fc5a273532ae1071d4154 100644 (file)
@@ -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 <cmath>