Skip to content

Commit

Permalink
General format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dparo committed Aug 11, 2023
1 parent e78e22e commit 8d29690
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,16 @@ foreach(SRC IN LISTS TEST_PYTHON_LIST)
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)

string(
JOIN ";"
ENV_PROP
"PYTHONPATH=${CMAKE_SOURCE_DIR}/src/python3:$ENV{PYTHONPATH}"
"MYPYPATH=${CMAKE_SOURCE_DIR}/src/python3:$ENV{MYPYPATH}"
)

set_tests_properties(
"pytest::${TARGET}"
PROPERTIES
ENVIRONMENT
"PYTHONPATH=${CMAKE_SOURCE_DIR}/src/python3:$ENV{PYTHONPATH};\
MYPYPATH=${CMAKE_SOURCE_DIR}/src/python3:$ENV{MYPYPATH};"
ENVIRONMENT "${ENV_PROP}"
)
endforeach()

0 comments on commit 8d29690

Please sign in to comment.