Re: [cmake-developers] targets with the same name as their enclosing directory can't be built when in that directory.

2016-09-06 Thread Steve Lorimer
Ok, thanks Brad On 5 September 2016 at 22:42, Brad King wrote: > On 09/05/2016 04:22 AM, Steve Lorimer wrote: > > $ cat src/foo/foobar/CMakeLists.txt > > add_executable(foobar main.cpp) > > However, if I am in the build/foo directory, then nothing happens > > if

[cmake-developers] targets with the same name as their enclosing directory can't be built when in that directory.

2016-09-05 Thread Steve Lorimer
I have the following directory structure: src/ + foo/ | +--- foobar/ + bar/ src/CMakeLists adds the foo and bar subdirectories src/foo/CMakeLists adds the foobar subdirectory src/foobar/CMakeLists and src/bar/CMakeLists create 2 executables (foobar and bar) $ cat src/CMakeLists.txt c

Re: [cmake-developers] Feature request: file globbing in ADDITIONAL_MAKE_CLEAN_FILES

2016-09-04 Thread Steve Lorimer
directory_properties (PROPERTIES ADDITIONAL_MAKE_CLEAN_SCRIPT > "my_clean_script.cmake") > > > > *From: *cmake-developers on behalf > of Steve Lorimer > *Date: *Friday 2 September 2016 at 01:32 > *To: *"cmake-developers@cmake.org" &

[cmake-developers] Feature request: file globbing in ADDITIONAL_MAKE_CLEAN_FILES

2016-09-01 Thread Steve Lorimer
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 m

[cmake-developers] ctest doesn't respect --output-on-failure if --quiet is also specified

2016-08-23 Thread Steve Lorimer
Maybe I just don't know how to use ctest properly. I'm trying to suppress ctest's output *except* if there is a test failure. As such, I'm running with the following command: ctest --output-on-failure --quiet According to the man page, --quiet suppresses --verbose, --extra-verbose and --deb

[cmake-developers] Unix makefile: concurrent build configurations

2016-08-18 Thread Steve Lorimer
Hello all New to this list, so apologies if it's been discussed before. I'd like to know why it's not possible to have both debug and release mode builds configured at the same time for Unix makefiles? I am aware that some generators (eg VisualStudio) do allow this behaviour. Why can I not have