Task is to generate static libraries out of the SDKs we currently have for various OSs.
I have generated the artifacts for my project, use it to run a conan install and cmake in the build_release folder.
I was able to generate a single lib (I changed all the settings to false where it says SHARED - so instead of .lib, .dll and some other file, it generated .lib only).
But when I run conan create ., it complains
poco/1.13.3#00..... Invalid
ERROR: There are invalid packages:
poco/1.13.3: Invalid: Current cppstd (14) is lower than the required C++ standard (17).
Having 14 vs 17 CMAKE_CXX_STANDARD issue. I made sure CMakeLists file sets this parameter to 17.
I even ran the command with 17 explicitly mentioned:
conan install . -o xf_iam_client/*:shared=False --output-folder=build_release --build=missing --profile build_profiles\win_x86_64_msvc_17_193_Release -s compiler.cppstd=17 -v trace
Need help with this error. thanks.
Other things I did:
Installed MSVC 2019 first, then downloaded 2022.
Cleared cache, cleaned the builds, rebuild the file structure, build_release folder is deleted and started over the process using
cmake --build . --config Release
Still face the same issue.
-s compiler.cppstd=17should work, unless for some reason you havepocoin the build context, that is, astool-require(which is not very expected, as it is a library, not a tool). In that case you would need also-s:b compiler.cppstd=17to define it in the "build" context too. If not, I'd suggest reporting an issue in github.com/conan-io/conan/issues:bpoco/1.13.3#: - Invalid sqlite3/3.45.0#:# - Download (conan) ProjectName/1.5.0#: - Build zlib/1.3.1#:# - Cache zstd/1.5.5#:# - Download (conan) Build requirements Skipped binaries nasm/2.16.01, strawberryperl/5.32.1.1 ERROR: There are invalid packages: poco/1.13.3: Invalid: Current cppstd (14) is lower than the required C++ standard (17).same error even after:b