mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-09 06:48:35 -05:00
Fix -ggdb flags on Unix
This commit is contained in:
@@ -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 ()
|
||||
|
||||
@@ -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 ()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user