From debd5924c4534a4e466736f1cb183b20d760c834 Mon Sep 17 00:00:00 2001 From: Tobias Hienzsch Date: Wed, 21 Feb 2024 15:59:28 +0100 Subject: [PATCH] Add MSVC permissive & __cplusplus compiler flags --- lib/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index a814bb2..abb7239 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -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