mirror of
https://github.com/triqs/dft_tools
synced 2025-04-25 17:54:54 +02:00
[cmake] Use PROJECT_SOURCE_DIR over CMAKE_SOURCE_DIR
This commit is contained in:
parent
6e4598ce07
commit
5982c49615
@ -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
2
deps/CMakeLists.txt
vendored
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user