diff options
author | mckaygerhard <mckaygerhard@gmail.com> | 2012-11-28 14:04:48 -0430 |
---|---|---|
committer | mckaygerhard <mckaygerhard@gmail.com> | 2012-11-28 14:04:48 -0430 |
commit | 9f85752fcd20ffd7a00509d884645ae3f2ceea71 (patch) | |
tree | a7bee44903252d834811f63506eafdb53253e05c /CMakeLists.txt | |
parent | 15b5e81bf4a5ea6f8785adbd39a71999adc2c4d7 (diff) |
fixed autodetection of debug builds
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b6b272e6..0a320668 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,10 @@ set(HARDINFO_VERSION "0.5.2pre") SET( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ) include(GNUInstallDirs) +if(${CMAKE_BUILD_TYPE} MATCHES [Dd]ebug) + set(HARDINFO_DEBUG 1) +endif() + if(${CMAKE_HOST_SYSTEM_NAME} MATCHES "Linux") set(HARDINFO_OS "linux") else() |