From 0bfdf60c12322890d08ffd2c7ca2e28ed3c317cb Mon Sep 17 00:00:00 2001 From: Mean UI Thread Date: Sun, 4 Jun 2023 12:46:01 -0400 Subject: [PATCH] fix for 'Ninja Multi-Config' generator (#677) --- cmake/modules/hunter_sanity_checks.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/modules/hunter_sanity_checks.cmake b/cmake/modules/hunter_sanity_checks.cmake index 6971382014..640cd49ce7 100644 --- a/cmake/modules/hunter_sanity_checks.cmake +++ b/cmake/modules/hunter_sanity_checks.cmake @@ -13,6 +13,8 @@ function(hunter_sanity_checks) hunter_internal_error("CMAKE_GENERATOR is empty") endif() + string(COMPARE EQUAL "${CMAKE_GENERATOR}" "Ninja Multi-Config" is_ninja_multi_config) + string(REGEX MATCH "^Visual Studio" vs_string "${CMAKE_GENERATOR}") string(COMPARE EQUAL "${vs_string}" "Visual Studio" is_visual_studio) @@ -31,7 +33,7 @@ function(hunter_sanity_checks) ) endif() - if(is_xcode OR is_visual_studio) + if(is_ninja_multi_config OR is_xcode OR is_visual_studio) set(multiconfig_generator TRUE) else() set(multiconfig_generator FALSE)