Fix -ggdb flags on Unix

This commit is contained in:
Alexander Bock
2015-05-24 00:47:51 +02:00
parent d045da3d2e
commit e65183eb49
2 changed files with 2 additions and 2 deletions

View File

@@ -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 ()

View File

@@ -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 ()