From 94ede2735a6c38a53b11120c0d5f06ff5b288336 Mon Sep 17 00:00:00 2001 From: Benjamen Meyer Date: Sat, 12 Oct 2024 01:56:45 -0400 Subject: [PATCH] Bug Fix: fix relative paths --- engine/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/CMakeLists.txt b/engine/CMakeLists.txt index 9723d544a..f50bfa89f 100644 --- a/engine/CMakeLists.txt +++ b/engine/CMakeLists.txt @@ -272,7 +272,7 @@ IF (NOT USE_SYSTEM_BOOST) UNSET(Boost_LIBRARIES) UNSET(Boost_INCLUDE_DIR) UNSET(Boost_LIBRARY_DIRS) - SET(Boost_DIR ../ext/) + SET(Boost_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../ext/) SET(BOOST_PYTHON_NO_PY_SIGNATURES 1) SET(TST_INCLUDES ${TST_INCLUDES} ${Vega_Strike_SOURCE_DIR}/${Boost_DIR}) MESSAGE("++ Using Internal Boost::python3") @@ -1173,7 +1173,7 @@ ELSE (WIN32) ENDIF (WIN32) -ADD_SUBDIRECTORY("../doc" "./doc") +ADD_SUBDIRECTORY("${CMAKE_CURRENT_SOURCE_DIR}/../doc" "./doc") # As per https://braintrekking.wordpress.com/2013/04/27/dll-hell-how-to-include-microsoft-redistributable-runtime-libraries-in-your-cmakecpack-project/ INSTALL(FILES ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} DESTINATION bin COMPONENT Libraries) @@ -1181,8 +1181,8 @@ INSTALL(FILES ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} DESTINATION bin COMPONENT Lib SET(CPACK_PACKAGE_NAME "Vega-Strike") SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "3D OpenGL spaceflight simulator") SET(CPACK_PACKAGE_VENDOR "Vega Strike") -SET(CPACK_PACKAGE_DESCRIPTION_FILE "../README.md") -SET(CPACK_RESOURCE_FILE_LICENSE "../LICENSE") +SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/../README.md") +SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/../LICENSE") SET(CPACK_PACKAGE_VERSION_MAJOR "${VEGASTRIKE_VERSION_MAJOR}") SET(CPACK_PACKAGE_VERSION_MINOR "${VEGASTRIKE_VERSION_MINOR}") SET(CPACK_PACKAGE_VERSION_PATCH "${VEGASTRIKE_VERSION_PATCH}")