Fixed Bindings regeneration under MSVC.
This commit is contained in:
parent
8821c476bb
commit
022f5f141d
@ -256,6 +256,11 @@ set(EXECUTABLE MCServer)
|
|||||||
if (MSVC)
|
if (MSVC)
|
||||||
get_directory_property(BINDING_OUTPUTS DIRECTORY "Bindings" DEFINITION BINDING_OUTPUTS)
|
get_directory_property(BINDING_OUTPUTS DIRECTORY "Bindings" DEFINITION BINDING_OUTPUTS)
|
||||||
get_directory_property(BINDING_DEPENDENCIES DIRECTORY "Bindings" DEFINITION BINDING_DEPENDENCIES)
|
get_directory_property(BINDING_DEPENDENCIES DIRECTORY "Bindings" DEFINITION BINDING_DEPENDENCIES)
|
||||||
|
|
||||||
|
# The paths in BINDING_DEPENDENCIES are relative to the Bindings folder, convert them relative to this folder:
|
||||||
|
foreach (dep ${BINDING_DEPENDENCIES})
|
||||||
|
list (APPEND BINDINGS_DEPENDENCIES "Bindings/${dep}")
|
||||||
|
endforeach(dep)
|
||||||
|
|
||||||
ADD_CUSTOM_COMMAND(
|
ADD_CUSTOM_COMMAND(
|
||||||
OUTPUT ${BINDING_OUTPUTS}
|
OUTPUT ${BINDING_OUTPUTS}
|
||||||
@ -268,7 +273,7 @@ if (MSVC)
|
|||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Bindings/
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Bindings/
|
||||||
|
|
||||||
# add any new generation dependencies here
|
# add any new generation dependencies here
|
||||||
DEPENDS ${BINDING_DEPENDENCIES}
|
DEPENDS ${BINDINGS_DEPENDENCIES}
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user