@@ -10,22 +10,22 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
1010find_package (Scorep REQUIRED )
1111find_package (Python REQUIRED COMPONENTS Interpreter Development )
1212
13- Python_add_library (scorep_bindings
13+ Python_add_library (_bindings
1414 src/methods.cpp src/scorep_bindings.cpp src/scorepy/events.cpp
1515)
1616if (Python_VERSION_MAJOR GREATER_EQUAL 3)
17- target_sources (scorep_bindings PRIVATE src/classes.cpp src/scorepy/cInstrumenter.cpp src/scorepy/pythonHelpers.cpp )
17+ target_sources (_bindings PRIVATE src/classes.cpp src/scorepy/cInstrumenter.cpp src/scorepy/pythonHelpers.cpp )
1818endif ()
19- target_link_libraries (scorep_bindings PRIVATE Scorep::Plugin )
20- target_compile_features (scorep_bindings PRIVATE cxx_std_11 )
21- target_compile_definitions (scorep_bindings PRIVATE PY_SSIZE_T_CLEAN )
22- target_include_directories (scorep_bindings PRIVATE src )
19+ target_link_libraries (_bindings PRIVATE Scorep::Plugin )
20+ target_compile_features (_bindings PRIVATE cxx_std_11 )
21+ target_compile_definitions (_bindings PRIVATE PY_SSIZE_T_CLEAN )
22+ target_include_directories (_bindings PRIVATE src )
2323
24- set_target_properties (scorep_bindings PROPERTIES
24+ set_target_properties (_bindings PROPERTIES
2525 LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /site-packages/scorep
2626)
2727add_custom_target (ScorepModule ALL
28- ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_LIST_DIR} /scorep $<TARGET_FILE_DIR :scorep_bindings >
28+ ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_LIST_DIR} /scorep $<TARGET_FILE_DIR :_bindings >
2929 COMMENT "Copying module files to build tree"
3030)
3131
@@ -43,4 +43,4 @@ set_tests_properties(ScorepPythonTests PROPERTIES ENVIRONMENT "PYTHONPATH=${pyth
4343set (INSTALL_DIR "lib/python${Python_VERSION_MAJOR} .${Python_VERSION_MINOR} /site-packages" )
4444
4545install (DIRECTORY scorep DESTINATION ${INSTALL_DIR} )
46- install (TARGETS scorep_bindings DESTINATION ${INSTALL_DIR} /scorep)
46+ install (TARGETS _bindings DESTINATION ${INSTALL_DIR} /scorep)
0 commit comments