File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -94,16 +94,16 @@ if( tools.python )
94
94
python/src/tools.python.cpp
95
95
)
96
96
97
- target_link_libraries ( tools.python PRIVATE tools )
98
- target_include_directories ( tools.python PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} /python/src )
97
+ target_link_libraries ( tools.python PUBLIC tools )
98
+ target_include_directories ( tools.python PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} /python/src )
99
99
target_compile_options ( tools.python PRIVATE "-fvisibility=hidden" )
100
100
set_target_properties ( tools.python PROPERTIES OUTPUT_NAME tools )
101
101
set_target_properties ( tools.python PROPERTIES COMPILE_DEFINITIONS "PYBIND11" )
102
102
set_target_properties ( tools.python PROPERTIES POSITION_INDEPENDENT_CODE ON )
103
103
104
104
message ( STATUS "Building tools' python API" )
105
105
106
- list ( APPEND SCION_PYTHONPATH ${CMAKE_CURRENT_BINARY_DIR} )
106
+ list ( APPEND TOOLS_PYTHONPATH ${CMAKE_CURRENT_BINARY_DIR} )
107
107
108
108
include ( cmake/unit_testing_python.cmake )
109
109
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ function( add_python_test name source )
12
12
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} /python )
13
13
set_tests_properties ( ${test_name}
14
14
PROPERTIES ENVIRONMENT
15
- PYTHONPATH=${SCION_PYTHONPATH }:$ENV{PYTHONPATH} )
15
+ PYTHONPATH=${TOOLS_PYTHONPATH }:$ENV{PYTHONPATH} )
16
16
17
17
endfunction ()
18
18
You can’t perform that action at this time.
0 commit comments