Open hwhsu1231 opened 2 years ago
conan profile show default
[settings] os=Windows os_build=Windows arch=x86_64 arch_build=x86_64 build_type=Release [options] [conf] [build_requires] [env]
I use CMake-Conan to install package. Here is my root-level CMakeLists.txt file:
CMakeLists.txt
Ctrl+Shift+P
CMake: Configure
It's not a recipe issue.
Package and Environment Details (include every applicable attribute)
Conan profile (output of
conan profile show default
)Root-level CMakeLists.txt
I use CMake-Conan to install package. Here is my root-level
CMakeLists.txt
file:Click to CMakeLists.txt
```cmake cmake_minimum_required(VERSION 3.15) get_filename_component(folder_name "${CMAKE_CURRENT_SOURCE_DIR}" NAME) project(${folder_name} LANGUAGES C CXX) message("========== ${folder_name} ==========") get_cmake_property(is_multi_config GENERATOR_IS_MULTI_CONFIG) if(is_multi_config) # Multi-Config Generator set(output_dir "${CMAKE_BINARY_DIR}/$Steps to reproduce
CMakeLists.txt
file, and then paste the above example on it.Ctrl+Shift+P
, and then typeCMake: Configure
.Logs
Click to expand log
``` [cmake] ========== TEST-CMakeDeps-oatpp ========== [cmake] -- Conan: Detected VS runtime: MDd [cmake] -- Conan: checking conan executable [cmake] -- Conan: Found program C:/Program Files/Conan/conan/conan.exe [cmake] -- Conan: Version found Conan version 1.48.1 [cmake] -- Conan executing: C:/Program Files/Conan/conan/conan.exe install . --remote conancenter --install-folder ./conan --build missing --settings arch=x86_64 --settings build_type=Debug --settings compiler=Visual Studio --settings compiler.version=16 --settings compiler.runtime=MDd [cmake] Configuration: [cmake] [settings] [cmake] arch=x86_64 [cmake] arch_build=x86_64 [cmake] build_type=Debug [cmake] compiler=Visual Studio [cmake] compiler.runtime=MDd [cmake] compiler.version=16 [cmake] os=Windows [cmake] os_build=Windows [cmake] [options] [cmake] [build_requires] [cmake] [env] [cmake] [cmake] conanfile.txt: Installing package [cmake] Requirements [cmake] oatpp/1.3.0 from 'conancenter' - Cache [cmake] Packages [cmake] oatpp/1.3.0:INVALID - Invalid [cmake] [cmake] Installing (downloading, building) binaries... [cmake] ERROR: There are invalid packages (packages that cannot exist for this configuration): [cmake] oatpp/1.3.0: Invalid ID: oatpp can not be built as shared library on Windows [cmake] CMake Error at build/win32-MSVC-x64-Debug/conan.cmake:651 (message): [cmake] Conan install failed='6' [cmake] Call Stack (most recent call first): [cmake] CMakeLists.txt:63 (conan_cmake_install) [cmake] [cmake] [cmake] -- Configuring incomplete, errors occurred! ```