Skip to content

Commit

Permalink
Fix typo and replaced ${PROJECT_NAME} by @PROJECT_NAME@
Browse files Browse the repository at this point in the history
This was not correctly doing the substitution, but rather it's kept at "${PROJECT_NAME}::${LIBRARY_NAME}". This is a problem when you later do "find_package" from another cmake project.
  • Loading branch information
pablospe committed Aug 7, 2020
1 parent 28b4bc3 commit 33a3f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ if(NOT TARGET ${PROJECT_NAME}::${LIBRARY_NAME})
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
endif()

set(@PROJECT_NAME@_lIBRARIES ${PROJECT_NAME}::${LIBRARY_NAME})
set(@PROJECT_NAME_UPPERCASE@_LIBRARIES @PROJECT_NAME@::@LIBRARY_NAME@)

check_required_components("@PROJECT_NAME@")

0 comments on commit 33a3f54

Please sign in to comment.