microsoft / GSL

Guidelines Support Library
Other
6.11k stars 736 forks source link

CMake Error at CMakeLists.txt:14 (find_package): Could not find a package configuration file provided by "Microsoft.GSL" #1121

Closed briviere closed 1 year ago

dmitrykobets-msft commented 1 year ago

Hi @briviere could you please point me to the "Chapter02" example you're referring to?

briviere commented 1 year ago

Hello Dmitry

I will close this issue. I created the issue in the wrong git repository ( https://github.com/PacktPublishing/Software-Architecture-with-Cpp/tree/master ).

I did resolve my issue by using the following:

include(FetchContent)

FetchContent_Declare(GSL GIT_REPOSITORY "https://github.com/microsoft/GSL" GIT_TAG "v4.0.0" GIT_SHALLOW ON )

FetchContent_MakeAvailable(GSL)

thanks

Brian

On Mon, 12 Jun 2023 at 15:11, Dmitry Kobets @.***> wrote:

Hi @briviere https://github.com/briviere could you please point me to the "Chapter02" example you're referring to?

— Reply to this email directly, view it on GitHub https://github.com/microsoft/GSL/issues/1121#issuecomment-1587927092, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABXD2FAXXBHZJXYBYMFOYLXK5SW5ANCNFSM6AAAAAAZDVIA3A . You are receiving this because you were mentioned.Message ID: @.***>