Skip to content

Commit e5424ed

Browse files
committed
cmake: Set Hunter configuration type properly
1 parent fa64192 commit e5424ed

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

cmake/Hunter/init.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ endif()
1616

1717
if(NOT CMAKE_CONFIGURATION_TYPES)
1818
if(CMAKE_BUILD_TYPE STREQUAL Debug)
19-
set(HUNTER_CONFIGURATION_TYPES Debug)
19+
set(CONFIG Debug)
2020
else()
21-
set(HUNTER_CONFIGURATION_TYPES Release)
21+
set(CONFIG Release)
2222
endif()
23+
set(HUNTER_CONFIGURATION_TYPES ${CONFIG} CACHE STRING "Build type of Hunter packages")
24+
unset(CONFIG)
2325
endif()
2426

2527
HunterGate(

0 commit comments

Comments
 (0)