examples icon indicating copy to clipboard operation
examples copied to clipboard

proposing example for new virtualenvs

Open memsharded opened this issue 3 years ago • 1 comments

Failing with

hello/0.1 (test package): CMake command: cmake -G "Visual Studio 16 2019" -DCMAKE_TOOLCHAIN_FILE="C:/U
ge/build/ecbfb49a4e2ea8618319be5f9e02c8e0621391fb/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Us
e/build/ecbfb49a4e2ea8618319be5f9e02c8e0621391fb/package" "C:\Users\memsharded\conanws\examples\features\en
Using Conan toolchain through C:/Users/memsharded/conanws/examples/features/environment/buildrunenv/test_pa
ake.                                                                                                  
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19042.                           
-- The CXX compiler identification is MSVC 19.29.30038.1                                              
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/To
Using Conan toolchain through .                                                                       
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/To
-- Detecting CXX compiler ABI info                                                                    
Using Conan toolchain through .                                                                       
-- Detecting CXX compiler ABI info - done                                                             
-- Detecting CXX compile features                                                                     
-- Detecting CXX compile features - done                                                              
-- Conan: Target declared 'hello::hello'                                                              
-- Conan: Component target declared 'OpenSSL::Crypto'                                                 
-- Conan: Component target declared 'OpenSSL::SSL'                                                    
-- Conan: Target declared 'OpenSSL::OpenSSL'                                                          
-- Conan: Including build module from 'C:/Users/memsharded/.conan/data/openssl/1.1.1k/_/_/package/3fb49604f
les.cmake'                                                                                            
CMake Error at C:/cmake3.15.1/share/cmake-3.15/Modules/CMakeFindDependencyMacro.cmake:47 (find_package
  Could not find a package configuration file provided by "cmake" with any of                         
  the following names:                                                                                
                                                                                                      
    cmakeConfig.cmake                                                                                 
    cmake-config.cmake                                                                                
                                                                                                      
  Add the installation prefix of "cmake" to CMAKE_PREFIX_PATH or set                                  
  "cmake_DIR" to a directory containing one of the above files.  If "cmake"                           
  provides a separate development package or SDK, be sure it has been                                 

memsharded avatar Jun 28 '21 09:06 memsharded

This happens because new CMakeDeps will pull all dependencies to generate xxx-config.cmake files, including cmake, if not build/host context are used. Using:

conan create . -s:b os=Windows

avoids this issue.

Now, the problem is gtest, it is propagated down to test_package, incorrectly.

memsharded avatar Jun 28 '21 10:06 memsharded