CMakeLists.txt (root_v6.26.08.source) | : | CMakeLists.txt (root_v6.26.10.source) | ||
---|---|---|---|---|
skipping to change at line 129 | skipping to change at line 129 | |||
set(libname ROOTPythonizations${python_under_version_string}) | set(libname ROOTPythonizations${python_under_version_string}) | |||
add_library(${libname} SHARED ${cpp_sources}) | add_library(${libname} SHARED ${cpp_sources}) | |||
# Set the suffix to '.so' and the prefix to 'lib' | # Set the suffix to '.so' and the prefix to 'lib' | |||
set_target_properties(${libname} PROPERTIES ${ROOT_LIBRARY_PROPERTIES}) | set_target_properties(${libname} PROPERTIES ${ROOT_LIBRARY_PROPERTIES}) | |||
if(MSVC) | if(MSVC) | |||
set_target_properties(${libname} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE) | set_target_properties(${libname} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE) | |||
set_target_properties(${libname} PROPERTIES SUFFIX ".pyd") | set_target_properties(${libname} PROPERTIES SUFFIX ".pyd") | |||
target_link_libraries(${libname} PUBLIC Core Tree cppyy${python_under_versio n_string}) | target_link_libraries(${libname} PUBLIC Core Tree cppyy${python_under_versio n_string}) | |||
elseif(APPLE) | elseif(APPLE) | |||
target_link_libraries(${libname} PUBLIC -Wl,-bind_at_load -Wl,-undefined -Wl ,dynamic_lookup Core Tree cppyy${python_under_version_string}) | target_link_libraries(${libname} PUBLIC -Wl,-bind_at_load -Wl,-flat_namespac e -Wl,-undefined -Wl,suppress Core Tree cppyy${python_under_version_string}) | |||
else() | else() | |||
target_link_libraries(${libname} PUBLIC -Wl,--unresolved-symbols=ignore-all Core Tree cppyy${python_under_version_string}) | target_link_libraries(${libname} PUBLIC -Wl,--unresolved-symbols=ignore-all Core Tree cppyy${python_under_version_string}) | |||
endif() | endif() | |||
target_include_directories(${libname} | target_include_directories(${libname} | |||
SYSTEM PRIVATE ${python_include_dir}) | SYSTEM PRIVATE ${python_include_dir}) | |||
target_include_directories(${libname} | target_include_directories(${libname} | |||
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>) | PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>) | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |