CMakeLists.txt (root_v6.26.08.source) | : | CMakeLists.txt (root_v6.26.10.source) | ||
---|---|---|---|---|
skipping to change at line 66 | skipping to change at line 66 | |||
add_library(${libname} SHARED ${headers} ${sources}) | add_library(${libname} SHARED ${headers} ${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) | |||
list(GET python_libraries ${val} python_library) | list(GET python_libraries ${val} python_library) | |||
target_link_libraries(${libname} PUBLIC cppyy_backend${python_under_version_ string} ${python_library}) | target_link_libraries(${libname} PUBLIC cppyy_backend${python_under_version_ string} ${python_library}) | |||
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 PREFIX "lib") | set_target_properties(${libname} PROPERTIES PREFIX "lib") | |||
set_target_properties(${libname} PROPERTIES SUFFIX ".pyd") | set_target_properties(${libname} PROPERTIES SUFFIX ".pyd") | |||
elseif(APPLE) | elseif(APPLE) | |||
target_link_libraries(${libname} PUBLIC -Wl,-bind_at_load -Wl,-undefined -Wl ,dynamic_lookup cppyy_backend${python_under_version_string}) | target_link_libraries(${libname} PUBLIC -Wl,-bind_at_load -Wl,-flat_namespac e -Wl,-undefined -Wl,suppress cppyy_backend${python_under_version_string}) | |||
else() | else() | |||
target_link_libraries(${libname} PUBLIC -Wl,--unresolved-symbols=ignore-all cppyy_backend${python_under_version_string}) | target_link_libraries(${libname} PUBLIC -Wl,--unresolved-symbols=ignore-all cppyy_backend${python_under_version_string}) | |||
endif() | endif() | |||
if(NOT MSVC) | if(NOT MSVC) | |||
target_compile_options(${libname} PRIVATE | target_compile_options(${libname} PRIVATE | |||
-Wno-shadow -Wno-strict-aliasing) | -Wno-shadow -Wno-strict-aliasing) | |||
endif() | endif() | |||
if(NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" AND NOT MSVC) | if(NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" AND NOT MSVC) | |||
target_compile_options(${libname} PRIVATE | target_compile_options(${libname} PRIVATE | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |