Skip to content

Commit

Permalink
[cmake] Remove redundant W2DYN_ROOT and do not forward Python Executa…
Browse files Browse the repository at this point in the history
…ble information
  • Loading branch information
Wentzell committed Mar 25, 2024
1 parent db48101 commit 36b9ef0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ message(STATUS "-------- BUILD-TYPE: ${CMAKE_BUILD_TYPE} --------")

# w2dynamics specific variables
get_property(FFTW_LIBRARIES TARGET triqs::fftw PROPERTY INTERFACE_LINK_LIBRARIES)
set(Python_EXECUTABLE ${TRIQS_PYTHON_EXECUTABLE})
set(W2DYN_GIT_HASH 7364c00)
set(W2DYN_ROOT ${PROJECT_BINARY_DIR}/w2dyn_project/src/w2dynamics)
message(STATUS "w2dynamics git hash: ${W2DYN_GIT_HASH}")

include(FetchContent)
Expand Down
2 changes: 1 addition & 1 deletion test/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ foreach(test ${all_tests})
$<$<BOOL:${USE_LIBCXX}>:--libcxx>
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${test_dir}
)
set_property(TEST Py_${test_name} APPEND PROPERTY ENVIRONMENT PYTHONPATH=${PROJECT_BINARY_DIR}/python:${W2DYN_ROOT}:$ENV{PYTHONPATH})
set_property(TEST Py_${test_name} APPEND PROPERTY ENVIRONMENT PYTHONPATH=${PROJECT_BINARY_DIR}/python:${w2dynamics_SOURCE_DIR}:$ENV{PYTHONPATH})
endforeach()

0 comments on commit 36b9ef0

Please sign in to comment.