Skip to content

Commit

Permalink
Change windows build to also use c++17
Browse files Browse the repository at this point in the history
Need to explicitly enable it, set(CMAKE_CXX_STANDARD 17) isn't
sufficient.

Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
  • Loading branch information
mstemm authored and poiana committed Jun 22, 2023
1 parent b670d77 commit 351c470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/CompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if(NOT MSVC)
else() # MSVC
set(MINIMAL_BUILD ON)

set(FALCOSECURITY_LIBS_COMMON_FLAGS "-D_CRT_SECURE_NO_WARNINGS -DWIN32 -DMINIMAL_BUILD /EHsc /W3 /Zi")
set(FALCOSECURITY_LIBS_COMMON_FLAGS "-D_CRT_SECURE_NO_WARNINGS -DWIN32 -DMINIMAL_BUILD /EHsc /W3 /Zi /std:c++17")
set(FALCOSECURITY_LIBS_DEBUG_FLAGS "/MTd /Od")
set(FALCOSECURITY_LIBS_RELEASE_FLAGS "/MT")

Expand Down

0 comments on commit 351c470

Please sign in to comment.