summaryrefslogtreecommitdiffstats
path: root/cmake/macros.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/macros.cmake')
-rw-r--r--cmake/macros.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmake/macros.cmake b/cmake/macros.cmake
index 4a95d61..2951864 100644
--- a/cmake/macros.cmake
+++ b/cmake/macros.cmake
@@ -56,6 +56,7 @@ macro(project_targets_populate)
get_target_property(P ${TARGET} PREFIX)
get_target_property(BD ${TARGET} BINARY_DIR)
+ get_target_property(SD ${TARGET} SOURCE_DIR)
get_target_property(OUT ${TARGET} OUTPUT_NAME)
if(P MATCHES "NOTFOUND$")
@@ -87,7 +88,8 @@ macro(project_targets_populate)
DEPENDS ${TARGET}
COMMAND mkdir -p ${PACKAGE_HTTPDIR}
COMMAND touch ${PACKAGE_HTTPDIR}
- COMMAND cp -r ${BD}/${P}${OUT}/* ${PACKAGE_HTTPDIR}
+ COMMAND cp -r ${SD}/* ${PACKAGE_HTTPDIR}
+ COMMAND rm -f ${PACKAGE_HTTPDIR}/CMakeLists.txt
)
add_custom_target(${POPULE_PACKAGE_TARGET} DEPENDS ${PACKAGE_HTTPDIR}-xx)
add_dependencies(populate ${POPULE_PACKAGE_TARGET})
@@ -96,7 +98,8 @@ macro(project_targets_populate)
DEPENDS ${TARGET}
COMMAND mkdir -p ${PACKAGE_DATADIR}
COMMAND touch ${PACKAGE_DATADIR}
- COMMAND cp -r ${BD}/${P}${OUT} ${PACKAGE_DATADIR}
+ COMMAND cp -r ${SD}/* ${PACKAGE_DATADIR}
+ COMMAND rm -f ${PACKAGE_DATADIR}/CMakeLists.txt
)
add_custom_target(${POPULE_PACKAGE_TARGET} DEPENDS ${PACKAGE_DATADIR}-xx)
add_dependencies(populate ${POPULE_PACKAGE_TARGET})