From 2298e68d5cf6cc4ceefa6ce0c192900bb506c014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Sch=C3=BCmann?= Date: Wed, 10 Feb 2021 08:04:06 +0100 Subject: [PATCH] refs #95, fix MSVC warning syntax --- cmake/GhcHelper.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/GhcHelper.cmake b/cmake/GhcHelper.cmake index 44f3383..1395a2a 100644 --- a/cmake/GhcHelper.cmake +++ b/cmake/GhcHelper.cmake @@ -50,7 +50,7 @@ macro(AddTestExecutableWithStdCpp cppStd) $<$:-s DISABLE_EXCEPTION_CATCHING=0> $<$:-Wall -Wextra -Wshadow -Wconversion -Wsign-conversion -Wpedantic -Werror -Wno-error=deprecated-declarations> $<$:-Wall -Wextra -Wshadow -Wconversion -Wsign-conversion -Wpedantic -Wno-psabi -Werror -Wno-error=deprecated-declarations> - $<$:/WX /wd"4996">) + $<$:/WX /wd4996>) if(CMAKE_CXX_COMPILER_ID MATCHES MSVC) target_compile_definitions(filesystem_test_cpp${cppStd} PRIVATE _CRT_SECURE_NO_WARNINGS) endif() @@ -58,4 +58,4 @@ macro(AddTestExecutableWithStdCpp cppStd) set_target_properties(filesystem_test_cpp${cppStd} PROPERTIES LINK_FLAGS "-g4 -s DISABLE_EXCEPTION_CATCHING=0 -s ALLOW_MEMORY_GROWTH=1") endif() ParseAndAddCatchTests(filesystem_test_cpp${cppStd}) -endmacro() \ No newline at end of file +endmacro()