Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[package] ms-gsl/3.1.0: CMakeDeps + Conan 1.42 uses incorrect name for CMake configs #7887

Closed
jwillikers opened this issue Oct 29, 2021 · 0 comments · Fixed by #7890
Closed
Labels
bug Something isn't working

Comments

@jwillikers
Copy link
Contributor

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: ms-gsl/3.1.0
  • Operating System+version: Fedora Silverblue 35
  • Compiler+version: GCC 11
  • Conan version: conan 1.42.0
  • Python version: Python 3.10.0

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

[settings]
os=Linux
arch=x86_64
compiler=gcc
compiler.version=11
compiler.libcxx=libstdc++11
compiler.cppstd=17
build_type=Debug
[options]
[conf]
[build_requires]
[env]

Steps to reproduce (Include if Applicable)

Use the CMakeToolchain / CMakeDeps generator for a project and add ms-gsl as a requires.
In your CMakeLists.txt use find_package(Microsoft.GSL REQUIRED) and it will not be found during CMake's configure stage.
This is because the package is now named ms-gsl instead, which is unexpected.

Logs (Include/Attach if Applicable)

Click to expand log
-- Conan: Target declared 'fmt::fmt'
CMake Error at Module/Components/Platform/CMakeLists.txt:8 (find_package):
  By not providing "FindMicrosoft.GSL.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "Microsoft.GSL", but CMake did not find one.

  Could not find a package configuration file provided by "Microsoft.GSL"
  with any of the following names:

    Microsoft.GSLConfig.cmake
    microsoft.gsl-config.cmake

  Add the installation prefix of "Microsoft.GSL" to CMAKE_PREFIX_PATH or set
  "Microsoft.GSL_DIR" to a directory containing one of the above files.  If
  "Microsoft.GSL" provides a separate development package or SDK, be sure it
  has been installed.


-- Configuring incomplete, errors occurred!
@jwillikers jwillikers added the bug Something isn't working label Oct 29, 2021
jwillikers added a commit to jwillikers/conan-center-index that referenced this issue Oct 29, 2021
conan-center-bot pushed a commit that referenced this issue Nov 1, 2021
…e for CMakeDeps generator

* (#7887) [ms-gsl] fix CMake module file name for CMakeDeps generator

* Use only the cpp_info properties

* Revert "Use only the cpp_info properties"

This reverts commit 8186d8f.

* Simplify package_info method
ivanvurbanov pushed a commit to ivanvurbanov/conan-center-index that referenced this issue Dec 2, 2021
…rget name for CMakeDeps generator

* (conan-io#7887) [ms-gsl] fix CMake module file name for CMakeDeps generator

* Use only the cpp_info properties

* Revert "Use only the cpp_info properties"

This reverts commit 8186d8f.

* Simplify package_info method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant