mirror of
https://github.com/triqs/dft_tools
synced 2025-01-08 20:33:16 +01:00
[cmake] Use PROJECT_BINARY_DIR over CMAKE_BINARY_DIR
This commit is contained in:
parent
7b8b71e984
commit
357c4b81ba
@ -50,7 +50,7 @@ endforeach()
|
|||||||
add_custom_target(docs_sphinx ALL)
|
add_custom_target(docs_sphinx ALL)
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET docs_sphinx
|
TARGET docs_sphinx
|
||||||
COMMAND PYTHONPATH=${CMAKE_BINARY_DIR}/python:$ENV{PYTHONPATH} ${TRIQS_SPHINXBUILD_EXECUTABLE} -c . -j8 -b html ${CMAKE_CURRENT_SOURCE_DIR} html
|
COMMAND PYTHONPATH=${PROJECT_BINARY_DIR}/python:$ENV{PYTHONPATH} ${TRIQS_SPHINXBUILD_EXECUTABLE} -c . -j8 -b html ${CMAKE_CURRENT_SOURCE_DIR} html
|
||||||
)
|
)
|
||||||
|
|
||||||
option(Sphinx_Only "When building the documentation, skip the Python Modules and the generation of C++ Api and example outputs" OFF)
|
option(Sphinx_Only "When building the documentation, skip the Python Modules and the generation of C++ Api and example outputs" OFF)
|
||||||
|
@ -11,5 +11,5 @@ foreach(test ${all_tests})
|
|||||||
get_filename_component(test_name ${test} NAME_WE)
|
get_filename_component(test_name ${test} NAME_WE)
|
||||||
get_filename_component(test_dir ${test} DIRECTORY)
|
get_filename_component(test_dir ${test} DIRECTORY)
|
||||||
add_test(NAME Py_${test_name} COMMAND ${TRIQS_PYTHON_INTERPRETER} ${CMAKE_CURRENT_SOURCE_DIR}/${test_dir}/${test_name}.py WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${test_dir})
|
add_test(NAME Py_${test_name} COMMAND ${TRIQS_PYTHON_INTERPRETER} ${CMAKE_CURRENT_SOURCE_DIR}/${test_dir}/${test_name}.py WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${test_dir})
|
||||||
set_property(TEST Py_${test_name} APPEND PROPERTY ENVIRONMENT PYTHONPATH=${CMAKE_BINARY_DIR}/python:$ENV{PYTHONPATH} ${SANITIZER_RT_PRELOAD})
|
set_property(TEST Py_${test_name} APPEND PROPERTY ENVIRONMENT PYTHONPATH=${PROJECT_BINARY_DIR}/python:$ENV{PYTHONPATH} ${SANITIZER_RT_PRELOAD})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
Loading…
Reference in New Issue
Block a user