Skip to content

Commit

Permalink
fix case
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLartians committed Jan 6, 2021
1 parent 0689ed4 commit 59e72fc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function(write_license_disclaimer FILE_NAME PACKAGES)
file(WRITE ${FILE_NAME} "")
set(PRINT_DELIMITER OFF)
foreach(package ${PACKAGES})
file(GLOB licenses "${${package}_SOURCE_DIR}/LICENSE*" "${${package}_SOURCE_DIR}/license*")
file(GLOB licenses "${${package}_SOURCE_DIR}/LICENSE*" "${${package}_SOURCE_DIR}/LICENCE*")
list(LENGTH licenses LICENSE_COUNT)
if(LICENSE_COUNT GREATER_EQUAL 1)
if(PRINT_DELIMITER)
Expand Down
9 changes: 9 additions & 0 deletions test/project/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,21 @@ CPMAddPackage(
NAME Catch2
GITHUB_REPOSITORY catchorg/Catch2
VERSION 2.5.0
DOWNLOAD_ONLY YES
)

CPMAddPackage(
NAME fmt
GIT_TAG 6.1.2
GITHUB_REPOSITORY fmtlib/fmt
DOWNLOAD_ONLY YES
)

CPMAddPackage(
NAME sol2
URL https://github.com/ThePhD/sol2/archive/v3.2.1.zip
VERSION 3.2.1
DOWNLOAD_ONLY YES
)

cpm_licenses_create_disclaimer_target(
Expand Down

0 comments on commit 59e72fc

Please sign in to comment.