cmake: fix wrong target name
This commit is contained in:
parent
2289c4be73
commit
11ad8cce00
|
@ -36,7 +36,7 @@ foreach(_comp ${@PROJECT_NAME@_FIND_COMPONENTS})
|
||||||
set(__targets_file "${CMAKE_CURRENT_LIST_DIR}/${__target_full}Targets.cmake")
|
set(__targets_file "${CMAKE_CURRENT_LIST_DIR}/${__target_full}Targets.cmake")
|
||||||
if(EXISTS "${__targets_file}")
|
if(EXISTS "${__targets_file}")
|
||||||
include("${__targets_file}")
|
include("${__targets_file}")
|
||||||
add_library(${__target} ALIAS ${__target_full})
|
add_library(${__target} ALIAS @PROJECT_NAME@::${__target_full})
|
||||||
else()
|
else()
|
||||||
set(@PROJECT_NAME@_FOUND FALSE)
|
set(@PROJECT_NAME@_FOUND FALSE)
|
||||||
set(@PROJECT_NAME@_NOT_FOUND_MESSAGE "Can't find necessary configuration file for ${__target}, please make sure this component is built successfully and installed properly.")
|
set(@PROJECT_NAME@_NOT_FOUND_MESSAGE "Can't find necessary configuration file for ${__target}, please make sure this component is built successfully and installed properly.")
|
||||||
|
|
2
cmake
2
cmake
|
@ -1 +1 @@
|
||||||
Subproject commit 68b2bcba1456bbad73309d748ce50dc6cefc04a2
|
Subproject commit 03710453509b4e4c416b24540f093d60bca12cfc
|
Loading…
Reference in New Issue