mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-05 10:59:47 -05:00
Increase warning level for modules and main library in Unix
This commit is contained in:
@@ -120,7 +120,7 @@ function (set_common_compile_settings target_name)
|
||||
message(FATAL_ERROR "Compiler does not have C++11 support")
|
||||
endif ()
|
||||
|
||||
target_compile_options(${library_name} PUBLIC "-ggdb")
|
||||
target_compile_options(${library_name} PUBLIC "-ggdb" "-Wall" "-Wno-long-long" "-pedantic" "-Wextra")
|
||||
if (OPENSPACE_WARNINGS_AS_ERRORS)
|
||||
target_compile_options(${library_name} PUBLIC "-Werror")
|
||||
endif ()
|
||||
|
||||
@@ -140,7 +140,8 @@ function (set_compile_settings)
|
||||
target_compile_options(OpenSpace PUBLIC "-Werror")
|
||||
endif ()
|
||||
|
||||
target_compile_options(libOpenSpace PUBLIC "-ggdb")
|
||||
target_compile_options(libOpenSpace PUBLIC "-ggdb" "-Wall" "-Wno-long-long" "-pedantic" "-Wextra")
|
||||
target_compile_options(OpenSpace PUBLIC "-ggdb" "-Wall" "-Wno-long-long" "-pedantic" "-Wextra")
|
||||
endif ()
|
||||
endfunction ()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user