diff options
author | madmaxoft <github@xoft.cz> | 2014-09-01 16:10:40 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-09-01 16:10:40 +0200 |
commit | 022f5f141dae1c97cb17a046404755a0be36c26d (patch) | |
tree | 9a2bb05aa55c4b974c1362064702e7588b44fe15 | |
parent | Fixed previous commit's wrong assumptions. (diff) | |
download | cuberite-022f5f141dae1c97cb17a046404755a0be36c26d.tar cuberite-022f5f141dae1c97cb17a046404755a0be36c26d.tar.gz cuberite-022f5f141dae1c97cb17a046404755a0be36c26d.tar.bz2 cuberite-022f5f141dae1c97cb17a046404755a0be36c26d.tar.lz cuberite-022f5f141dae1c97cb17a046404755a0be36c26d.tar.xz cuberite-022f5f141dae1c97cb17a046404755a0be36c26d.tar.zst cuberite-022f5f141dae1c97cb17a046404755a0be36c26d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 37657ba91..2d96662a9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -256,6 +256,11 @@ set(EXECUTABLE MCServer) if (MSVC) get_directory_property(BINDING_OUTPUTS DIRECTORY "Bindings" DEFINITION BINDING_OUTPUTS) 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( OUTPUT ${BINDING_OUTPUTS} @@ -268,7 +273,7 @@ if (MSVC) WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Bindings/ # add any new generation dependencies here - DEPENDS ${BINDING_DEPENDENCIES} + DEPENDS ${BINDINGS_DEPENDENCIES} ) endif() |