cmake-conan icon indicating copy to clipboard operation
cmake-conan copied to clipboard

Add support for Android compiler.libcxx

Open pkubik opened this issue 4 years ago • 2 comments

Right now the main scripts sets only one of the desktop specific values for the compiler.libcxx (in conan_cmake_detect_unix_libcxx macro), e.g. libstdc++, libstdc++11. Please add support for other types values, e.g. c++_staticandc++_shared`. Since it would be difficult to fully handle all special cases like Android I'd suggest another parameter for the override. At the moment it's possible to specify custom settings, but they are appended to the settings generated by the script and thus ignored, e.g.:

Conan executing: /home/pkubik/.local/bin/conan install . -s build_type=Debug -s compiler=clang -s compiler.version=9 -s compiler.libcxx=libstdc++11 -s compiler.libcxx=c++_shared

Note that compiler.libcxx is given twice, and the second one (specified manually) is being ignored rendering me unable to choose the correct value for Android project.

pkubik avatar Mar 14 '20 23:03 pkubik

Hi @pkubik, I have reproduced the issue, you are right that those settings will not be taken into account. Thanks a lot for reporting this, we'll have a look at it.

czoido avatar Mar 30 '20 13:03 czoido

Hi @pkubik, This issue is related to https://github.com/conan-io/cmake-conan/issues/255 and will be fixed by https://github.com/conan-io/cmake-conan/pull/258 that will be merged to 0.16 version. Now compiler.libcxx will be set correctly.

czoido avatar Jul 10 '20 15:07 czoido