[prev in list] [next in list] [prev in thread] [next in thread]
List: cmake
Subject: [CMake] set_directory_properties ADDITIONAL_MAKE_CLEAN_FILES globbing pattern?
From: Steve Lorimer <steve.lorimer () gmail ! com>
Date: 2016-08-24 16:35:29
Message-ID: CAE-NPOia-Pn3WDdKHCCnx3OT_nKX2FhXCeb=RvMzXfvGLWSk=g () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
As part of our build process we tag certain binary files with version
information such as git branch, number of commits, build variant etc.
Eg, for a binary called "app" we could install a file in the local source
directory with the name "app.branch_foo.91.debug"
The shell globbing pattern that matches is "app.*[0-9]*"
I need a globbing pattern because the tag can change without the makefiles
changing, so the tag can't be hardcoded into the makefile.
If I specify a globbing pattern for ADDITIONAL_MAKE_CLEAN_FILES it
specifies this as an actual file
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
app.*[0-9]*)
This results in
file(REMOVE_RECURSE
"../../../app/app.*[0-9]*"
...
)
I've tried adding a nested file(GLOB ...) into the set_directory_properties
but that doesn't work either.
Is it possible to specify a globbing pattern
in set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ...)?
Is it possible to specify a globbing pattern in file(REMOVE_RECURSE ...)?
TIA
Steve
[Attachment #5 (text/html)]
<div dir="ltr"><div>As part of our build process we tag certain binary files with \
version information such as git branch, number of commits, build variant \
etc.</div><div><br></div><div>Eg, for a binary called "app" we could \
install a file in the local source directory with the name \
"app.branch_foo.91.debug"</div><div><br></div><div>The shell globbing \
pattern that matches is "app.*[0-9]*"</div><div><br></div><div>I need a \
globbing pattern because the tag can change without the makefiles changing, so the \
tag can't be hardcoded into the makefile.</div><div><br></div><div>If I specify a \
globbing pattern for ADDITIONAL_MAKE_CLEAN_FILES it specifies this as an actual \
file</div><div><br></div><div> set_directory_properties(PROPERTIES \
ADDITIONAL_MAKE_CLEAN_FILES app.*[0-9]*)</div><div><br></div><div>This results in \
</div><div><br></div><div> file(REMOVE_RECURSE</div><div> \
"../../../app/app.*[0-9]*"</div><div> ...</div><div> \
)</div><div><br></div><div>I've tried adding a nested file(GLOB ...) into the \
set_directory_properties but that doesn't work \
either.</div><div><br></div><div>Is it possible to specify a globbing pattern in \
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES \
...)?<br></div><div><br></div><div>Is it possible to specify a globbing pattern in \
file(REMOVE_RECURSE ...)?</div><div><br></div><div>TIA </div><div>Steve</div></div>
--
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic