From 395d2822b58f71174f7ad097168be1c48d48903d Mon Sep 17 00:00:00 2001 From: Thomas Heinemann Date: Tue, 21 Aug 2012 13:32:55 +0200 Subject: [PATCH] CMakeLists.txt: Enable debug symbols only on GCC (as e.g. Visual Studio creates a debug version automatically...) --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 15d37e06a..8341f5f34 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,11 @@ project (MRMC-cpp CXX C) set (MRMC_CPP_VERSION_MAJOR 1) set (MRMC_CPP_VERSION_MINOR 0) -set (CMAKE_CXX_FLAGS "-g") +#Configurations for GCC +if(CMAKE_COMPILER_IS_GNUCC) + #Debug symbols + set (CMAKE_CXX_FLAGS "-g") +endif() # configure a header file to pass some of the CMake settings # to the source code