-
Notifications
You must be signed in to change notification settings - Fork 38
prevent setting CONNEXTDDS_ARCH when a more proper one exists #137
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
base: rolling
Are you sure you want to change the base?
Changes from 4 commits
c058b0d
fc6eb52
609f3ef
01d704f
455302d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -462,7 +462,7 @@ function(rti_guess_connextdds_arch) | |
| if(EXISTS "${CONNEXTDDS_DIR}/lib/${guessed_architecture}") | ||
| set(CONNEXTDDS_ARCH "${guessed_architecture}") | ||
| message(STATUS | ||
| "Guessed ${CONNEXTDDS_DIR}/lib/${guessed_architecture} exists") | ||
| "Guessed ${CONNEXTDDS_DIR}/lib/${guessed_architecture} exists and is selected") | ||
| else() | ||
| # If CONNEXTDDS_ARCH is unspecified, the module tries uses the first | ||
| # architecture installed by looking under $CONNEXTDDS_DIR/lib that matches | ||
|
|
@@ -474,8 +474,9 @@ function(rti_guess_connextdds_arch) | |
| message(STATUS | ||
| "Guessed CONNEXTDDS_ARCH ('${guessed_architecture}') not available.") | ||
| message(STATUS | ||
| "Pick first from ${CONNEXTDDS_DIR}/lib/[${architectures_installed}]") | ||
| "Try to search from ${CONNEXTDDS_DIR}/lib/[${architectures_installed}]") | ||
|
|
||
| set(architecture_candidates "") | ||
| foreach(architecture_name ${architectures_installed}) | ||
| # Because the lib folder contains both target libraries and | ||
| # Java JAR files, here we exclude the "java" in our algorithm | ||
|
|
@@ -516,11 +517,7 @@ function(rti_guess_connextdds_arch) | |
| endif() | ||
| endif() | ||
| if(NOT CONNEXTDDS_ARCH) | ||
| message(STATUS | ||
| "unsupported CMAKE_HOST_SYSTEM_NAME (${CMAKE_HOST_SYSTEM_NAME}) " | ||
| "or CMAKE_HOST_SYSTEM_PROCESSOR (${CMAKE_HOST_SYSTEM_PROCESSOR}). " | ||
| "Using architecture ${architecture_name} anyway.") | ||
| set(CONNEXTDDS_ARCH "${architecture_name}") | ||
| list(APPEND architecture_candidates ${architecture_name}) | ||
fujitatomoya marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| endif() | ||
| else() | ||
| message(STATUS "ignored foreign architecture: ${architecture_name}") | ||
|
|
@@ -529,18 +526,27 @@ function(rti_guess_connextdds_arch) | |
| if(CONNEXTDDS_ARCH) | ||
| break() | ||
| endif() | ||
|
|
||
| endforeach() | ||
| endif() | ||
|
|
||
| if(NOT CONNEXTDDS_ARCH) | ||
| message(WARNING | ||
| "CONNEXTDDS_ARCH not specified. Please set " | ||
| "-DCONNEXTDDS_ARCH= to specify your RTI Connext DDS " | ||
| " architecture") | ||
| else() | ||
| if(NOT CONNEXTDDS_ARCH) | ||
| list(GET architecture_candidates 0 CONNEXTDDS_ARCH) | ||
|
||
| if(CONNEXTDDS_ARCH) | ||
| message(STATUS | ||
| "unsupported CMAKE_HOST_SYSTEM_NAME (${CMAKE_HOST_SYSTEM_NAME}) " | ||
| "or CMAKE_HOST_SYSTEM_PROCESSOR (${CMAKE_HOST_SYSTEM_PROCESSOR}). " | ||
| "Using architecture ${CONNEXTDDS_ARCH} anyway.") | ||
| else() | ||
| message(WARNING | ||
| "CONNEXTDDS_ARCH not specified. Please set " | ||
| "-DCONNEXTDDS_ARCH= to specify your RTI Connext DDS " | ||
| " architecture") | ||
| endif() | ||
| else() | ||
| message(STATUS "Selected CONNEXTDDS_ARCH: ${CONNEXTDDS_ARCH}") | ||
|
||
| endif() | ||
| endif() | ||
WanruXX marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| endif() | ||
|
|
||
| set(CONNEXTDDS_ARCH "${CONNEXTDDS_ARCH}" PARENT_SCOPE) | ||
| endfunction() | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
i changed the message here since it will skip the message in line 546