Yes, I am not sure how to fix this, as it is not per-se a conan bug, but something missing in CMake. The workaround to CMake until master is released could be implemented here: macro(conan_set_std)#Do not warn "Manually-specified variables were not used by the project"set(ignore...
WARNING: Target "chainbase_test" requests linking to directory "/usr/include/openssl". Targets may link only to libraries. CMake is dropping the item. CMake Error at libraries/utilities/CMakeLists.txt:22 (add_library): CXX_STANDARD is set to invalid value '17' CMake Error at libraries/...
我还注意到,将 CMakeList.txt 中的 CMAKE_CXX_STANDARD 从 20 更改为 14 时,错误显示为 set(CMAKE_CXX_STANDARD 11) 不生成 c++11 标志 CMAKE_CXX_STANDARD 的有效值为 98、11 和 14,其中 17 还需要代码并让 CMake 自动制定 C++ 标准。根据编译器是否支持该功能来使用。只是不在 CMake 2.8 中,...
set(XLNT_LANGS 11 14 17) set(XLNT_CXX_LANG "14" CACHE STRING "c++ language features to compile with") # enumerate allowed values for cmake gui set_property(CACHE XLNT_CXX_LANG PROPERTY STRINGS ${XLNT_LANGS}) # validate value is in XLNT_LANGS list(FIND XLNT_LANGS ${XLNT_CXX_LANG} ...
set(XLNT_CXX_LANG"14"CACHESTRING"c++ language features to compile with") #enumerate allowed values for cmake gui set_property(CACHEXLNT_CXX_LANGPROPERTYSTRINGS${XLNT_LANGS}) #validate value is in XLNT_LANGS list(FINDXLNT_LANGS${XLNT_CXX_LANG}index) ...