From e65183eb493dd062a85c5c267c57c73945312e6a Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Sun, 24 May 2015 00:47:51 +0200 Subject: [PATCH] Fix -ggdb flags on Unix --- support/cmake/module_definition.cmake | 2 +- support/cmake/support_macros.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/support/cmake/module_definition.cmake b/support/cmake/module_definition.cmake index f69997c8b8..1cfb40a8f1 100644 --- a/support/cmake/module_definition.cmake +++ b/support/cmake/module_definition.cmake @@ -119,7 +119,7 @@ function (set_common_compile_settings target_name) message(FATAL_ERROR "Compiler does not have C++11 support") endif () - target_compile_definitions(${library_name} PUBLIC "-ggdb") + target_compile_options(${library_name} PUBLIC "-ggdb") if (OPENSPACE_WARNINGS_AS_ERRORS) target_compile_options(${library_name} PUBLIC "-Werror") endif () diff --git a/support/cmake/support_macros.cmake b/support/cmake/support_macros.cmake index 2a8a08ab91..a0acfa8590 100644 --- a/support/cmake/support_macros.cmake +++ b/support/cmake/support_macros.cmake @@ -135,7 +135,7 @@ function (set_compile_settings) message(FATAL_ERROR "Compiler does not have C++11 support") endif () - target_compile_definitions(libOpenSpace PUBLIC "-ggdb") + target_compile_options(libOpenSpace PUBLIC "-ggdb") endif () endfunction ()