-
Notifications
You must be signed in to change notification settings - Fork 793
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
[11561] Upgrade installer to support cmake linking statically or dynamically to Fast-DDS #1958
Conversation
endif() | ||
elseif(MSVC_VERSION GREATER_EQUAL 1920) | ||
if(MSVC_VERSION LESS_EQUAL 1900) | ||
message(FATAL_ERROR "Not supported version of Visual Studio") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
message(FATAL_ERROR "Not supported version of Visual Studio") | |
message(FATAL_ERROR "Not supported version ${MSVC_VERSION} of Visual Studio") |
cmake/packaging/Config.cmake.in
Outdated
find_package(OpenSSL REQUIRED) | ||
include(${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@-static-targets.cmake) | ||
else() | ||
include(${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@-dynamic-targets.cmake) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if fails, try with the static config file
ae2040e
to
ee09b6c
Compare
cmake/packaging/Config.cmake.in
Outdated
include(${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@-targets.cmake) | ||
if(FASTDDS_STATIC) | ||
# OpenSSL static libraries are not distributed with the installer | ||
find_package(OpenSSL REQUIRED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this only should be added if compiled with openssl.
Now using
cmake -DFASTDDS_STATIC=ON
... is possible to link statically to a Fast-DDS installation (formerly only dynamic linking was available).Merge after eProsima/Fast-CDR#107