Re: [CMake] Setting install dir based on Debug or Release

2015-05-20 Thread CHEVRIER, Marc
Multi-configurations is a bit complex to handle regarding install directories but it is doable. Here is my solution: 1. Handle various possibilities (multi-configs or mono-config). In case of multi-config, you have to rely on variable CMAKE_CFG_INTDIR which be contains information enabling

[CMake] File organization and the essence of modules

2015-05-20 Thread Cedric Doucet
Hello, I wonder how I should organize cmake files in my project. For the moment, I have organized my project like this: == project/ CMakeLists.txt cmake/ modules/ FindLibrary.cmake MyFunction.cmake src/ CMakeLists.txt == If I keep on

[Cmake-commits] CMake branch, next, updated. v3.2.2-3017-g6e7f531

2015-05-20 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 6e7f5313aae143287e158b1e1d38765b85fcf291 (commit) via

[Cmake-commits] CMake branch, next, updated. v3.2.2-3015-gabcab61

2015-05-20 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via abcab61f7ec66715040b67fb42b04aec43cdff92 (commit) via

Re: [CMake] Setting install dir based on Debug or Release

2015-05-20 Thread Scott Aron Bloom
That makes sense.. Ill play with it and see. It looks like a straight forward solution… Scott From: CHEVRIER, Marc [mailto:marc.chevr...@sap.com] Sent: Wednesday, May 20, 2015 12:00 AM To: Scott Aron Bloom; cmake@cmake.org Subject: Re: [CMake] Setting install dir based on Debug or Release

[cmake-developers] [CMake 0015577]: The 'project' command overwrites CMAKE_CONFIGURATION_TYPES.

2015-05-20 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == https://public.kitware.com/Bug/view.php?id=15577 == Reported By:Cedric Guerin Assigned To:

[cmake-developers] [CMake 0015578]: Target property that sets Startup Project in MSVC

2015-05-20 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=15578 == Reported By:Davy Durham Assigned To:

Re: [cmake-developers] Regarding the 'run-include-what-you-use' topic

2015-05-20 Thread Bill Hoffman
On 5/20/2015 8:48 AM, Brad King wrote: It also would be great to have more than one static analyzer enabled at a time. Like IWYU and clang-tidy and KWStyle and ... We also have support for asan, tsan: http://www.kitware.com/blog/home/post/762 We can also use scan-build (ccc-analyzer and

[CMake] add_executable with generated files

2015-05-20 Thread Tom Kacvinsky
I have need to make an executable that depends on a generated file. I've read several tutorials on how to do this, but even after following those instructions, I get this error: CMake Error at CMakeLists.txt:436 (add_executable): Cannot find source file: .chop/maint.adb Tried

Re: [CMake] add_executable with generated files

2015-05-20 Thread Tom Kacvinsky
On Wed, May 20, 2015 at 3:27 PM, Tom Kacvinsky tom.kacvin...@vectorcast.com wrote: On Wed, May 20, 2015 at 2:57 PM, Tom Kacvinsky tom.kacvin...@vectorcast.com wrote: I have need to make an executable that depends on a generated file. I've read several tutorials on how to do this, but

Re: [cmake-developers] Regarding the 'run-include-what-you-use' topic

2015-05-20 Thread Daniel Pfeifer
On Wed, May 20, 2015 at 7:34 PM, Bill Hoffman bill.hoff...@kitware.com wrote: I looked quickly at the clang-tidy docs and it looks interesting. I see it is setup to use the compile_commands.json file. Originally we looked at running iwyu using that file. However, it became quickly evident

Re: [CMake] add_executable with generated files

2015-05-20 Thread Tom Kacvinsky
My mistake, the tutorials I looked at were for using generated files in add_library. I do have a working add_library with generated files, but I can't seem to get generated files to work with add_executable. So is there a difference between the two? add_library allows for use of generated

[CMake] Passing arguments to functions

2015-05-20 Thread Cedric Doucet
Hello, I try to wrote a function DownloadThenInstall which calls the ExternalProject_Add function after havind defined useful variables like prefix, download_dir, etc. I would like to call it like this DownloadThenInstall(Eigen) to download and install the Eigen library (for example).