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

Various tidy-ups (2) #581

Merged
merged 6 commits into from
Nov 9, 2023
Merged

Various tidy-ups (2) #581

merged 6 commits into from
Nov 9, 2023

Conversation

jhol
Copy link
Contributor

@jhol jhol commented Oct 30, 2023

This PR supercedes #561 . It has been rebased on top of develop2, and excludes the debated variable name harmonization patch.

@jhol jhol changed the base branch from develop to develop2 October 30, 2023 17:50
Copy link
Contributor

@jcar87 jcar87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the tidy-up!

@@ -130,7 +132,7 @@ endmacro()


function(detect_lib_cxx OS LIB_CXX)
if(${OS} STREQUAL "Android")
if(OS STREQUAL "Android")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one here is tricky - with the function being invoked like this:

detect_lib_cxx(MYOS MYLIB_CXX)

the value of OS inside this function is simply the string MYOS - so removing the reference (${OS}), causes this to compare the string MYOS which Android, which obviously fails.

This is the only of the detect_* functions that takes an input that is not the name of a variable to write to - so it makes it confusing.
I've refactored this to simply check in CMake for the current system name being Android, I think that's more in line with the rest of the file.

@jcar87 jcar87 merged commit 5b550a0 into conan-io:develop2 Nov 9, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants