From 7c8a7461201ced24d629b8b93ec0f72a8e1d4c63 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Mon, 12 Jun 2023 14:31:53 -0700 Subject: [PATCH] Fix CMake problem with /Zc:templateScope on older Windows SDKs (#116) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 11ec4b7..de4c8b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -389,7 +389,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.35) foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME}) - target_compile_options(${t} PRIVATE /Zc:templateScope /Zc:checkGwOdr) + target_compile_options(${t} PRIVATE /Zc:checkGwOdr $<$:/Zc:templateScope>) endforeach() endif()