diff options
author | Mat <mail@mathias.is> | 2020-01-02 16:59:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-02 16:59:07 +0100 |
commit | dd665f092f0c8b752904252b660177b5d5b77372 (patch) | |
tree | 7a2ae44098d8ab0636d8a550be3f8908692d9596 /src | |
parent | Fix android builds (#4432) (diff) | |
download | cuberite-dd665f092f0c8b752904252b660177b5d5b77372.tar cuberite-dd665f092f0c8b752904252b660177b5d5b77372.tar.gz cuberite-dd665f092f0c8b752904252b660177b5d5b77372.tar.bz2 cuberite-dd665f092f0c8b752904252b660177b5d5b77372.tar.lz cuberite-dd665f092f0c8b752904252b660177b5d5b77372.tar.xz cuberite-dd665f092f0c8b752904252b660177b5d5b77372.tar.zst cuberite-dd665f092f0c8b752904252b660177b5d5b77372.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 70572d845..92f7b11b5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -403,12 +403,12 @@ set(symlinks message("Creating output folder and symlinks...") file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/Server") foreach (symlink ${symlinks}) - make_symlink("${CMAKE_SOURCE_DIR}/Server/${symlink}" "${CMAKE_BINARY_DIR}/Server/${symlink}") + make_symlink("${CMAKE_CURRENT_SOURCE_DIR}/../Server/${symlink}" "${CMAKE_BINARY_DIR}/Server/${symlink}") endforeach(symlink) -make_symlink("${CMAKE_SOURCE_DIR}/BACKERS" "${CMAKE_BINARY_DIR}/Server/BACKERS") -make_symlink("${CMAKE_SOURCE_DIR}/CONTRIBUTORS" "${CMAKE_BINARY_DIR}/Server/CONTRIBUTORS") -make_symlink("${CMAKE_SOURCE_DIR}/LICENSE" "${CMAKE_BINARY_DIR}/Server/LICENSE") -make_symlink("${CMAKE_SOURCE_DIR}/Server/Install/ThirdPartyLicenses" "${CMAKE_BINARY_DIR}/Server/ThirdPartyLicenses") +make_symlink("${CMAKE_CURRENT_SOURCE_DIR}/../BACKERS" "${CMAKE_BINARY_DIR}/Server/BACKERS") +make_symlink("${CMAKE_CURRENT_SOURCE_DIR}/../CONTRIBUTORS" "${CMAKE_BINARY_DIR}/Server/CONTRIBUTORS") +make_symlink("${CMAKE_CURRENT_SOURCE_DIR}/../LICENSE" "${CMAKE_BINARY_DIR}/Server/LICENSE") +make_symlink("${CMAKE_CURRENT_SOURCE_DIR}/../Server/Install/ThirdPartyLicenses" "${CMAKE_BINARY_DIR}/Server/ThirdPartyLicenses") @@ -444,7 +444,7 @@ target_link_libraries(${CMAKE_PROJECT_NAME} luaexpat jsoncpp_lib_static mbedtls # Create a folder for Bindings' documentation: FILE(MAKE_DIRECTORY "Bindings/docs") -make_symlink("${CMAKE_SOURCE_DIR}/src/Bindings/docs" "${CMAKE_BINARY_DIR}/Server/BindingsDocs") +make_symlink("${CMAKE_CURRENT_SOURCE_DIR}/Bindings/docs" "${CMAKE_BINARY_DIR}/Server/BindingsDocs") # For MSVC, set the startup project to Cuberite, and the debugger dir: |