Skip to content

Commit e4c5327

Browse files
committed
support Ninja Multi-Config and normal
1 parent a1f42b2 commit e4c5327

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,10 @@ ExternalProject_Add(HogMaker
263263
BINARY_DIR ${CMAKE_BINARY_DIR}/tools
264264
INSTALL_COMMAND ""
265265
)
266-
set(HogMakerBin ${CMAKE_BINARY_DIR}/tools/HogMaker)
266+
if (DEFINED CMAKE_CONFIGURATION_TYPES)
267+
set(HogMakerBin_ConfigDir "$<CONFIG>/")
268+
endif()
269+
set(HogMakerBin ${CMAKE_BINARY_DIR}/tools/${HogMakerBin_ConfigDir}HogMaker)
267270
268271
add_subdirectory(netcon)
269272
add_subdirectory(netgames)

0 commit comments

Comments
 (0)