Skip to content
Snippets Groups Projects
Verified Commit 25c0edcd authored by Lars Bilke's avatar Lars Bilke
Browse files

[CMake] Removed global warning flags.

parent b8a34ea3
No related branches found
No related tags found
No related merge requests found
......@@ -40,10 +40,6 @@ if(COMPILER_IS_GCC OR COMPILER_IS_CLANG OR COMPILER_IS_INTEL)
-D_GLIBCXX_DEBUG_VERIFY
)
endif()
add_compile_options(
-Wall
-Wextra
)
# Coloring output
option (FORCE_COLORED_OUTPUT "Always produce ANSI-colored output (GNU/Clang only)." ON)
......@@ -125,7 +121,6 @@ if(MSVC)
endif()
add_compile_options(
/MP # multi-core compilation
/W3
/wd4290 /wd4267 /wd4996
/bigobj
-D_CRT_SECURE_NO_WARNINGS
......
......@@ -83,8 +83,8 @@ function(ogs_add_library targetName)
add_library(${targetName} ${ARGN})
target_compile_options(${targetName} PRIVATE
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,
$<CXX_COMPILER_ID:GNU>>:-Wall>
$<$<CXX_COMPILER_ID:MSVC>:/W4>)
$<CXX_COMPILER_ID:GNU>>:-Wall -Wextra>
$<$<CXX_COMPILER_ID:MSVC>:/W3>)
if(BUILD_SHARED_LIBS)
install(TARGETS ${targetName} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment