Re: [CMake] cmake buried in subdirectory?

2017-10-05 Thread Michael Jackson
"J. Caleb Wherry" Cc: "cmake@cmake.org" Subject: Re: [CMake] cmake buried in subdirectory? Thanks for the reply. In my case, I didn't even want the CMakeLists in the top-level dir. I didn't want to contaminate my top-level dir with anything related to CMake. This

Re: [CMake] cmake buried in subdirectory?

2017-10-04 Thread J Decker
On Wed, Oct 4, 2017 at 6:22 PM, Randy Heiland wrote: > Thanks for the reply. In my case, I didn't even want the CMakeLists in the > top-level dir. I didn't want to contaminate my top-level dir with anything > related to CMake. This would avoid, for example, an accidental overwrite of > an existin

Re: [CMake] cmake buried in subdirectory?

2017-10-04 Thread Randy Heiland
Thanks for the reply. In my case, I didn't even want the CMakeLists in the top-level dir. I didn't want to contaminate my top-level dir with anything related to CMake. This would avoid, for example, an accidental overwrite of an existing Makefile if one was to do a 'cmake .' in the the top dir. It

Re: [CMake] cmake buried in subdirectory?

2017-10-04 Thread J. Caleb Wherry
There is no reason why this shouldn't work, I do something similar where everything except my top-level CMakeLists is shoved into a subdirectory (away from the src code location). You don't have to muck with the project macro at all, not sure what you are trying to accomplish with that? That just

[CMake] cmake buried in subdirectory?

2017-10-04 Thread Randy Heiland
Hello, Simple question... can I/how can I keep my top-level cmake-related stuff in a subdirectory of my main project directory? E.g.: /myproj /cmake CMakeLists.txt and then in the /cmake, I create a /build from which I attempt: cmake .. I tried something as simple as this in my CMakeList