File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -277,10 +277,10 @@ function(cpm_create_module_file Name)
277
277
# https://cmake.org/cmake/help/latest/module/FetchContent.html#fetchcontent-find-package-integration-examples
278
278
string (TOLOWER ${Name} NameLower )
279
279
file (WRITE ${CMAKE_FIND_PACKAGE_REDIRECTS_DIR} /${NameLower}-config.cmake
280
- "include(\" ${CMAKE_CURRENT_LIST_DIR} /${NameLower} -extra.cmake\" OPTIONAL)\n "
281
- "include(\" ${CMAKE_CURRENT_LIST_DIR} /${Name} Extra.cmake\" OPTIONAL)\n "
280
+ "include(\"\ $ {CMAKE_CURRENT_LIST_DIR}/${NameLower} -extra.cmake\" OPTIONAL)\n "
281
+ "include(\"\ $ {CMAKE_CURRENT_LIST_DIR}/${Name} Extra.cmake\" OPTIONAL)\n "
282
282
)
283
- file (WRITE ${CMAKE_FIND_PACKAGE_REDIRECTS_DIR} /${NameLower}-version.cmake
283
+ file (WRITE ${CMAKE_FIND_PACKAGE_REDIRECTS_DIR} /${NameLower}-config- version.cmake
284
284
"set(PACKAGE_VERSION_COMPATIBLE TRUE)\n " "set(PACKAGE_VERSION_EXACT TRUE)\n "
285
285
)
286
286
else ()
You can’t perform that action at this time.
0 commit comments