Use correct locations for the generated Poco*ConfigVersion.cmake files.

This commit is contained in:
Sascha Zelzer 2015-02-04 04:35:56 +01:00
parent 10425a9556
commit 25d3f4ccd4

View File

@ -195,7 +195,7 @@ endmacro()
macro(POCO_GENERATE_PACKAGE target_name)
include(CMakePackageConfigHelpers)
write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/Poco${target_name}ConfigVersion.cmake"
"${CMAKE_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME}${target_name}ConfigVersion.cmake"
VERSION ${PROJECT_VERSION}
COMPATIBILITY AnyNewerVersion
)