Hi,
in a cmake project I have a directory structure like shown below:
source/
subdir1/
subdir2/
file
subdir2/
file
which should be installed partially.
In one install call I need to exclude subdir1/subdir2 which could be
performed with the following install command.
install(DIRECTORY source DESTINATION . REGEX subdir1/subdir2 EXCLUDE)
but it looks impossible to exclude the top level subdir2. I tried
several variations.
install(DIRECTORY source DESTINATION . REGEX subdir2 EXCLUDE) ->
excludes all directory named 'subdir2'
install(DIRECTORY source DESTINATION . REGEX /subdir2 EXCLUDE) - does
not match any subdir
install(DIRECTORY source DESTINATION . REGEX ./subdir2 EXCLUDE) - does
not match any subdir
install(DIRECTORY source DESTINATION . REGEX ^subdir2 EXCLUDE) - does
not match any subdir
install(DIRECTORY source DESTINATION . REGEX ^/subdir2 EXCLUDE) - does
not match any subdir
install(DIRECTORY source DESTINATION . REGEX ^./subdir2 EXCLUDE) - does
not match any subdir
How to proceed ?
Regards
Ralf
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake