From d50ff75b446817b7323476950d3cf57ca4797c8b Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Sat, 31 Aug 2024 15:42:58 -0600 Subject: [PATCH] Use project-local CMake variables --- doc/CMakeLists.txt | 2 +- src/CSFML/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index fd1e9099..325b7053 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -3,7 +3,7 @@ find_package(Doxygen REQUIRED) # set the input and output documentation paths set(DOXYGEN_INPUT_DIR ${PROJECT_SOURCE_DIR}) -set(DOXYGEN_OUTPUT_DIR ${CMAKE_BINARY_DIR}/doc) +set(DOXYGEN_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}) # see if we can generate the CHM documentation if(SFML_OS_WINDOWS) diff --git a/src/CSFML/CMakeLists.txt b/src/CSFML/CMakeLists.txt index d200f7c7..6ee73838 100644 --- a/src/CSFML/CMakeLists.txt +++ b/src/CSFML/CMakeLists.txt @@ -5,7 +5,7 @@ include(${PROJECT_SOURCE_DIR}/cmake/Macros.cmake) include_directories(${PROJECT_SOURCE_DIR}/src) # set the output directory for CSFML libraries -set(LIBRARY_OUTPUT_PATH "${CMAKE_BINARY_DIR}/lib") +set(LIBRARY_OUTPUT_PATH "${PROJECT_BINARY_DIR}/lib") # define the export symbol add_definitions(-DCSFML_EXPORTS)