SupplementalAttributes.cmake 423 B

12345678910111213
  1. cmake_minimum_required(VERSION 4.0)
  2. include(Setup.cmake)
  3. set(CMAKE_FIND_PACKAGE_SORT_ORDER NAME)
  4. set(CMAKE_FIND_PACKAGE_SORT_DIRECTION DEC)
  5. find_package(SupplementalAttributesTest REQUIRED COMPONENTS Sample)
  6. get_target_property(license SupplementalAttributesTest::Sample "SPDX_LICENSE")
  7. if (NOT "${license}" STREQUAL "BSD-3-Clause")
  8. message(SEND_ERROR "SupplementalAttributesTest wrong license ${license} !")
  9. endif()