cpack: fix packaging directory for CMake <=3.11
authorMichael Wallner <mike@php.net>
Tue, 8 Jun 2021 09:36:16 +0000 (11:36 +0200)
committerMichael Wallner <mike@php.net>
Tue, 8 Jun 2021 09:36:16 +0000 (11:36 +0200)
CPack.txt

index cfbe1fc83a3f1adc7239fc1f64d692056ba39991..eca05503ce65febea4eb8f75d99c0db909046c3c 100644 (file)
--- a/CPack.txt
+++ b/CPack.txt
@@ -39,7 +39,7 @@ for the memcached server (http://memcached.org/). It has been designed
 to be light on memory usage, thread safe, and provide full access to
 server side methods.")
 if(CMAKE_VERSION VERSION_LESS 3.12)
-    string(REPLACE ";" "-" CPACK_PACKAGE_DIRECTORY "${PROJECT_CONFIG}")
+    string(REPLACE ";" "-" CPACK_PACKAGE_DIRECTORY "${CMAKE_BINARY_DIR}/${PROJECT_CONFIG}")
 else()
     list(JOIN PROJECT_CONFIG "-" CPACK_PACKAGE_DIRECTORY)
 endif()