Skip to content

Commit c019415

Browse files
committed
Updating cmake
1 parent 9005571 commit c019415

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,16 @@ if( tools.python )
9494
python/src/tools.python.cpp
9595
)
9696

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 )
9999
target_compile_options( tools.python PRIVATE "-fvisibility=hidden" )
100100
set_target_properties( tools.python PROPERTIES OUTPUT_NAME tools )
101101
set_target_properties( tools.python PROPERTIES COMPILE_DEFINITIONS "PYBIND11" )
102102
set_target_properties( tools.python PROPERTIES POSITION_INDEPENDENT_CODE ON )
103103

104104
message( STATUS "Building tools' python API" )
105105

106-
list( APPEND SCION_PYTHONPATH ${CMAKE_CURRENT_BINARY_DIR} )
106+
list( APPEND TOOLS_PYTHONPATH ${CMAKE_CURRENT_BINARY_DIR} )
107107

108108
include( cmake/unit_testing_python.cmake )
109109

cmake/unit_testing_python.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function( add_python_test name source )
1212
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/python )
1313
set_tests_properties( ${test_name}
1414
PROPERTIES ENVIRONMENT
15-
PYTHONPATH=${SCION_PYTHONPATH}:$ENV{PYTHONPATH})
15+
PYTHONPATH=${TOOLS_PYTHONPATH}:$ENV{PYTHONPATH})
1616

1717
endfunction()
1818

0 commit comments

Comments
 (0)