From ac1e58837f1ba687939f78b5c03cadd346c10ddd Mon Sep 17 00:00:00 2001 From: vnugent Date: Tue, 30 Jan 2024 12:25:05 -0500 Subject: couple more tests, renable range checks, set flags for all projects --- CMakeLists.txt | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 3872f13..847f9fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,14 +44,10 @@ if(MSVC) $<$:/FC> #show full path in diagnostics $<$:/showIncludes> #show a list of all included header files during build - ) - - #only target our project - target_compile_options( - ${CMAKE_PROJECT_NAME} - PRIVATE + $<$:/wd4820> #disable warnings for struct padding and spectre mitigation wuen WX is enabled + $<$:/wd5045> #disable warnings for spectre mitigation insertion #for debug configs $<$:/options:strict> @@ -78,12 +74,6 @@ elseif(CMAKE_COMPILER_IS_GNUCC) $<$:-Og> $<$:-Wall> $<$:-Werror> - ) - - #only target our project if building other 3rd party libs in current build - target_compile_options( - ${CMAKE_PROJECT_NAME} - PRIVATE $<$:-Wall> $<$:-pedantic> ) -- cgit