Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Include system runtime libraries #142

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions CMake/SEMMacroBuildCLI.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,26 @@ macro(SEMMacroBuildCLI)
COMPONENT RuntimeLibraries
)

# Save current values if any
if(DEFINED CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION)
set(_saved_CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION ${CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION})
endif()
if(DEFINED CMAKE_INSTALL_SYSTEM_RUNTIME_COMPONENT)
set(_saved_CMAKE_INSTALL_SYSTEM_RUNTIME_COMPONENT ${CMAKE_INSTALL_SYSTEM_RUNTIME_COMPONENT})
endif()

set(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION ${LOCAL_SEM_INSTALL_RUNTIME_DESTINATION})
set(CMAKE_INSTALL_SYSTEM_RUNTIME_COMPONENT "RuntimeLibraries")
include(InstallRequiredSystemLibraries)

# Restore values
if(DEFINED _saved_CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION)
set(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION ${_saved_CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION})
endif()
if(DEFINED _saved_CMAKE_INSTALL_SYSTEM_RUNTIME_COMPONENT)
set(CMAKE_INSTALL_SYSTEM_RUNTIME_COMPONENT ${_saved_CMAKE_INSTALL_SYSTEM_RUNTIME_COMPONENT})
endif()

endif()

# Folder
Expand Down