[mlpack] 103/324: Create separate target for moving mlpack headers. This should fix #322.
Barak A. Pearlmutter
barak+git at cs.nuim.ie
Sun Aug 17 08:22:00 UTC 2014
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch svn-trunk
in repository mlpack.
commit 7b8fde0d9b56fbdc97727204e8d359db229901c0
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date: Wed Jul 2 19:01:41 2014 +0000
Create separate target for moving mlpack headers. This should fix #322.
git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@16741 9d5b8971-822b-0410-80eb-d18c1038ef23
---
src/mlpack/CMakeLists.txt | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/mlpack/CMakeLists.txt b/src/mlpack/CMakeLists.txt
index 655035d..5d52218 100644
--- a/src/mlpack/CMakeLists.txt
+++ b/src/mlpack/CMakeLists.txt
@@ -48,14 +48,15 @@ set(INCLUDE_FILES ${INCLUDE_H_FILES} ${INCLUDE_HPP_FILES})
# Move all of these header files to <builddir>/include/mlpack/ after the library
# is built. First we have to create that directory though.
-add_custom_command(TARGET mlpack POST_BUILD
+add_custom_target(mlpack_headers)
+add_custom_command(TARGET mlpack_headers POST_BUILD
COMMENT "Moving header files to include/mlpack/"
COMMAND ${CMAKE_COMMAND} ARGS -E
make_directory ${CMAKE_BINARY_DIR}/include/mlpack/)
# Then copy each of the header files over to that directory.
foreach(incl_file ${INCLUDE_FILES})
- add_custom_command(TARGET mlpack POST_BUILD
+ add_custom_command(TARGET mlpack_headers POST_BUILD
COMMAND ${CMAKE_COMMAND} ARGS -E
copy ${CMAKE_CURRENT_SOURCE_DIR}/${incl_file}
${CMAKE_BINARY_DIR}/include/mlpack/${incl_file})
@@ -72,6 +73,8 @@ install(TARGETS mlpack
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
+add_dependencies(mlpack mlpack_headers)
+
# For 'make test'.
add_custom_target(test
${CMAKE_BINARY_DIR}/bin/mlpack_test
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git
More information about the debian-science-commits
mailing list