Skip to content

Commit

Permalink
Add MSVC permissive & __cplusplus compiler flags
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Feb 21, 2024
1 parent 3bcdc3e commit debd592
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ add_library(gritwave::grit ALIAS gritwave-grit)
target_compile_features(gritwave-grit INTERFACE cxx_std_20)
target_link_libraries(gritwave-grit INTERFACE tetl::etl)

if(MSVC)
target_compile_options(gritwave-grit INTERFACE "/permissive-" "/Zc:__cplusplus")
endif(MSVC)

target_sources(gritwave-grit INTERFACE
FILE_SET
HEADERS
Expand Down

0 comments on commit debd592

Please sign in to comment.