Skip to content

Commit

Permalink
refs #95, fix MSVC warning syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
gulrak committed Feb 10, 2021
1 parent 0f6f0af commit 2298e68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/GhcHelper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ macro(AddTestExecutableWithStdCpp cppStd)
$<$<BOOL:${EMSCRIPTEN}>:-s DISABLE_EXCEPTION_CATCHING=0>
$<$<CXX_COMPILER_ID:Clang>:-Wall -Wextra -Wshadow -Wconversion -Wsign-conversion -Wpedantic -Werror -Wno-error=deprecated-declarations>
$<$<CXX_COMPILER_ID:GNU>:-Wall -Wextra -Wshadow -Wconversion -Wsign-conversion -Wpedantic -Wno-psabi -Werror -Wno-error=deprecated-declarations>
$<$<CXX_COMPILER_ID:MSVC>:/WX /wd"4996">)
$<$<CXX_COMPILER_ID:MSVC>:/WX /wd4996>)
if(CMAKE_CXX_COMPILER_ID MATCHES MSVC)
target_compile_definitions(filesystem_test_cpp${cppStd} PRIVATE _CRT_SECURE_NO_WARNINGS)
endif()
if(EMSCRIPTEN)
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()
endmacro()

0 comments on commit 2298e68

Please sign in to comment.