Skip to content

Commit 098104c

Browse files
committed
support Ninja Multi-Config and normal
1 parent 30de64a commit 098104c

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
@@ -256,7 +256,10 @@ ExternalProject_Add(HogMaker
256256
BINARY_DIR ${CMAKE_BINARY_DIR}/tools
257257
INSTALL_COMMAND ""
258258
)
259-
set(HogMakerBin ${CMAKE_BINARY_DIR}/tools/HogMaker)
259+
if (DEFINED CMAKE_CONFIGURATION_TYPES)
260+
set(HogMakerBin_ConfigDir "$<CONFIG>/")
261+
endif()
262+
set(HogMakerBin ${CMAKE_BINARY_DIR}/tools/${HogMakerBin_ConfigDir}HogMaker)
260263
261264
add_subdirectory(netcon)
262265
add_subdirectory(netgames)

0 commit comments

Comments
 (0)