CMakeLists.txt (root_v6.26.08.source) | : | CMakeLists.txt (root_v6.26.10.source) | ||
---|---|---|---|---|
skipping to change at line 50 | skipping to change at line 50 | |||
# libJupyROOT uses ROOT headers from source dirs and depends on Core | # libJupyROOT uses ROOT headers from source dirs and depends on Core | |||
add_library(${libname} SHARED src/IOHandler.cxx) | add_library(${libname} SHARED src/IOHandler.cxx) | |||
# 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) | |||
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 ${python_library}) | target_link_libraries(${libname} PUBLIC Core ${python_library}) | |||
elseif(APPLE) | elseif(APPLE) | |||
target_link_libraries(${libname} PUBLIC -Wl,-bind_at_load -Wl,-undefined -Wl ,dynamic_lookup Core) | target_link_libraries(${libname} PUBLIC -Wl,-bind_at_load -Wl,-flat_namespac e -Wl,-undefined -Wl,suppress Core) | |||
else() | else() | |||
target_link_libraries(${libname} PUBLIC -Wl,--unresolved-symbols=ignore-all Core) | target_link_libraries(${libname} PUBLIC -Wl,--unresolved-symbols=ignore-all Core) | |||
endif() | endif() | |||
target_include_directories(${libname} SYSTEM PRIVATE ${python_include_dir}) | target_include_directories(${libname} SYSTEM PRIVATE ${python_include_dir}) | |||
# Compile .py files | # Compile .py files | |||
foreach(py_source ${py_sources}) | foreach(py_source ${py_sources}) | |||
install(CODE "execute_process(COMMAND ${python_executable} -m py_compile ${l ocalruntimedir}/${py_source})") | install(CODE "execute_process(COMMAND ${python_executable} -m py_compile ${l ocalruntimedir}/${py_source})") | |||
install(CODE "execute_process(COMMAND ${python_executable} -O -m py_compile ${localruntimedir}/${py_source})") | install(CODE "execute_process(COMMAND ${python_executable} -O -m py_compile ${localruntimedir}/${py_source})") | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |