Skip to content

proposing example for new virtualenvs#90

Draft
memsharded wants to merge 1 commit into
masterfrom
feature/buildrunenv
Draft

proposing example for new virtualenvs#90
memsharded wants to merge 1 commit into
masterfrom
feature/buildrunenv

Conversation

@memsharded
Copy link
Copy Markdown
Member

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 memsharded requested a review from lasote June 28, 2021 09:46
@memsharded
Copy link
Copy Markdown
Member Author

memsharded commented Jun 28, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant