Skip to content

Commit

Permalink
fix for 'Ninja Multi-Config' generator (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
mean-ui-thread committed Jun 4, 2023
1 parent 23cab65 commit 0bfdf60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/modules/hunter_sanity_checks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
Expand Down

0 comments on commit 0bfdf60

Please sign in to comment.