diff --git a/CMakeLists.txt b/CMakeLists.txt index 183a3bba0..f7453caeb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,7 +32,9 @@ fiction_setup_options() fiction_global_options() fiction_local_options() -set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g1 -fno-inline") +if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g1 -fno-inline") +endif () # don't know if this should be set globally from here or not... set(CMAKE_CXX_VISIBILITY_PRESET hidden)