Skip to content

Commit 28e2998

Browse files
committed
Fix version filename for find_package redirects
1 parent cd28d44 commit 28e2998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/CPM.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function(cpm_create_module_file Name)
280280
"include(\"${CMAKE_CURRENT_LIST_DIR}/${NameLower}-extra.cmake\" OPTIONAL)\n"
281281
"include(\"${CMAKE_CURRENT_LIST_DIR}/${Name}Extra.cmake\" OPTIONAL)\n"
282282
)
283-
file(WRITE ${CMAKE_FIND_PACKAGE_REDIRECTS_DIR}/${NameLower}-version.cmake
283+
file(WRITE ${CMAKE_FIND_PACKAGE_REDIRECTS_DIR}/${NameLower}-config-version.cmake
284284
"set(PACKAGE_VERSION_COMPATIBLE TRUE)\n" "set(PACKAGE_VERSION_EXACT TRUE)\n"
285285
)
286286
else()

0 commit comments

Comments
 (0)