From e4b385cb3bcb58a0c07e2f5f76f2af613f42126a Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Mon, 25 Jul 2022 14:48:27 -0700 Subject: [PATCH] Code review feedback --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b1398ff..c4f8051 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -298,10 +298,11 @@ if(MSVC) endforeach() endif() - # Compiling with guard:ehcont allow library consumers to enable guard:ehcont if they want. (Requires VS 2019 16.7 or later) if((MSVC_VERSION GREATER_EQUAL 1928) AND (CMAKE_SIZEOF_VOID_P EQUAL 8)) - target_compile_options(${PROJECT_NAME} PRIVATE "$<$:/guard:ehcont>") - target_link_options(${PROJECT_NAME} PRIVATE "$<$:/guard:ehcont>") + foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME}) + target_compile_options(${t} PRIVATE "$<$>:/guard:ehcont>") + target_link_options(${t} PRIVATE "$<$>:/guard:ehcont>") + endforeach() endif() endif()