mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-13 16:46:00 +00:00
Ensure bintoc creates output directory
This commit is contained in:
parent
31e3ee4d34
commit
170ff23843
@ -11,6 +11,8 @@ macro(bintoc out in sym)
|
|||||||
else()
|
else()
|
||||||
set(theIn ${CMAKE_CURRENT_SOURCE_DIR}/${in})
|
set(theIn ${CMAKE_CURRENT_SOURCE_DIR}/${in})
|
||||||
endif()
|
endif()
|
||||||
|
get_filename_component(outDir ${theOut} DIRECTORY)
|
||||||
|
file(MAKE_DIRECTORY ${outDir})
|
||||||
add_custom_command(OUTPUT ${theOut}
|
add_custom_command(OUTPUT ${theOut}
|
||||||
COMMAND $<TARGET_FILE:bintoc> ARGS ${theIn} ${theOut} ${sym}
|
COMMAND $<TARGET_FILE:bintoc> ARGS ${theIn} ${theOut} ${sym}
|
||||||
DEPENDS ${theIn} bintoc)
|
DEPENDS ${theIn} bintoc)
|
||||||
|
@ -19,6 +19,8 @@ macro(bintoc out in sym)
|
|||||||
else()
|
else()
|
||||||
set(theIn ${CMAKE_CURRENT_SOURCE_DIR}/${in})
|
set(theIn ${CMAKE_CURRENT_SOURCE_DIR}/${in})
|
||||||
endif()
|
endif()
|
||||||
|
get_filename_component(outDir ${theOut} DIRECTORY)
|
||||||
|
file(MAKE_DIRECTORY ${outDir})
|
||||||
add_custom_command(OUTPUT ${theOut}
|
add_custom_command(OUTPUT ${theOut}
|
||||||
COMMAND $<TARGET_FILE:bintoc> ARGS ${theIn} ${theOut} ${sym}
|
COMMAND $<TARGET_FILE:bintoc> ARGS ${theIn} ${theOut} ${sym}
|
||||||
DEPENDS ${theIn})
|
DEPENDS ${theIn})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user