mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
#2894: Poco 1.10.0 doesn't build with cmake & POCO_UNBUNDLED
This commit is contained in:
parent
b3f75eb850
commit
58e63be162
@ -233,20 +233,27 @@ configure_file("cmake/Poco${target_name}Config.cmake"
|
||||
@ONLY
|
||||
)
|
||||
|
||||
set(ConfigPackageLocation "lib/cmake/${PROJECT_NAME}")
|
||||
# Set config script install location in a location that find_package() will
|
||||
# look for, which is different on MS Windows than for UNIX
|
||||
# Note: also set in root CMakeLists.txt
|
||||
if (WIN32)
|
||||
set(PocoConfigPackageLocation "cmake")
|
||||
else()
|
||||
set(PocoConfigPackageLocation "lib/cmake/${PROJECT_NAME}")
|
||||
endif()
|
||||
|
||||
install(
|
||||
EXPORT "${target_name}Targets"
|
||||
FILE "${PROJECT_NAME}${target_name}Targets.cmake"
|
||||
NAMESPACE "${PROJECT_NAME}::"
|
||||
DESTINATION "lib${LIB_SUFFIX}/cmake/${PROJECT_NAME}"
|
||||
DESTINATION "${PocoConfigPackageLocation}"
|
||||
)
|
||||
|
||||
install(
|
||||
FILES
|
||||
"${CMAKE_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME}${target_name}Config.cmake"
|
||||
"${CMAKE_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME}${target_name}ConfigVersion.cmake"
|
||||
DESTINATION "lib${LIB_SUFFIX}/cmake/${PROJECT_NAME}"
|
||||
DESTINATION "${PocoConfigPackageLocation}"
|
||||
COMPONENT Devel
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user