3
0
mirror of https://github.com/triqs/dft_tools synced 2024-08-06 20:40:00 +02:00

[cmake] Use PROJECT_SOURCE_DIR over CMAKE_SOURCE_DIR

This commit is contained in:
Nils Wentzell 2020-05-15 10:50:13 -04:00
parent 6e4598ce07
commit 5982c49615
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ set(APP4TRIQS_BINARY_DIR ${PROJECT_BINARY_DIR} CACHE STRING "Binary directory of
# Options
# Make additional Find Modules available
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/share/cmake/Modules)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/share/cmake/Modules)
# Default to Release build type
if(NOT CMAKE_BUILD_TYPE)

2
deps/CMakeLists.txt vendored
View File

@ -17,7 +17,7 @@ include(external_dependency.cmake)
# to locate the package in the system.
# Skip this step if Build_Deps option is set.
# 2. Try to find a directory containing the sources
# at ${CMAKE_SOURCE_DIR}/deps/name. If found
# at ${PROJECT_SOURCE_DIR}/deps/name. If found
# build it as a cmake sub-project.
# 3. If GIT_REPO is provided, git clone the sources,
# and build them as a cmake sub-project.