stduuid icon indicating copy to clipboard operation
stduuid copied to clipboard

Only use embedded GSL if there is no target "GSL"

Open OlivierLDff opened this issue 3 years ago • 0 comments

When using stduuid with FetchContent/CPM.cmake/find_package, and also including GSL with such process, it create a conflict and it then become ambiguous which file is used where. Concrete use case:

CPMAddPackage(
  NAME GSL
  GIT_REPOSITORY "https://github.com/microsoft/GSL"
  GIT_TAG "v4.0.0"
)
CPMAddPackage(
  NAME stduuid
  GIT_REPOSITORY "https://github.com/mariusbancila/stduuid"
  GIT_TAG "master"
)

For now the workaround is to defined UUID_USING_CXX20_SPAN , which defeat its meaning.

OlivierLDff avatar Aug 04 '22 16:08 OlivierLDff