Re: [CMake] Extracting the configure and generate command

2014-11-02 Thread Saad Khattak
Thanks David. That at least makes it easier to write the scripts for generating the projects. It would be great if the GUI has an option to show the full CMake command. On Sun Nov 02 2014 at 10:13:24 AM David Cole wrote: > The "Show My Changes" menu item in the Tools menu gives you the -D comman

Re: [CMake] Problems with CMP0037

2014-11-02 Thread Erik de Castro Lopo
Nils Gladitz wrote: > To my defense what I suggested was "RUNTIME_OUTPUT_DIRECTORY" not > "EXECUTABLE_OUTPUT_PATH". You are correct and yes, RUNTIME_OUTPUT_DIRECTORY does the right thing. Thanks for your help. Erik -- -- Erik

Re: [CMake] Problems with CMP0037

2014-11-02 Thread Nils Gladitz
On 02.11.2014 21:01, Erik de Castro Lopo wrote: I also discussed this issue on IRC with @ngladitz who suggested the following: add_executable (win32_test tests/win32_test.c) set_target_properties (win32_test PROPERTIES EXECUTABLE_OUTPUT_PATH tests) To my defense what I suggested was

Re: [CMake] Problems with CMP0037

2014-11-02 Thread Erik de Castro Lopo
Rolf Eike Beer wrote: > Because you can't create files or directories with that name, you would end > up > getting one directory "tests" and a file/directory win32_test*. And creating > both with one API call isn't possible, so this may work if there is a > directory "tests" before because of

Re: [CMake] Problems with CMP0037

2014-11-02 Thread Alan W. Irwin
On 2014-11-02 18:52+0100 Andreas Naumann wrote: Hi Alan, with cmake 2.8.12.1 I can confirm this behavior at least for Makefile generator on Linux, see the attached small CMakeLists.txt. But what would be a better behavior? Changing the target name would change the output at end. So the user

Re: [CMake] Problems with CMP0037

2014-11-02 Thread Andreas Naumann
Hi Alan, with cmake 2.8.12.1 I can confirm this behavior at least for Makefile generator on Linux, see the attached small CMakeLists.txt. But what would be a better behavior? Changing the target name would change the output at end. So the user would have to figure out, what changed why. At th

Re: [CMake] Problems with CMP0037

2014-11-02 Thread Alan W. Irwin
Eike said: Because you can't create files or directories with that name, you would end up getting one directory "tests" and a file/directory win32_test*. And creating both with one API call isn't possible, so this may work if there is a directory "tests" before because of some other reason, b

Re: [CMake] Extracting the configure and generate command

2014-11-02 Thread David Cole via CMake
The "Show My Changes" menu item in the Tools menu gives you the -D command line options for the things you've touched in the cmake-gui program... HTH, David C. On Sat, Nov 1, 2014 at 12:16 PM, Saad Khattak wrote: > Once I have configured and generated a CMake project, is there a way to > extra

Re: [CMake] Problems with CMP0037

2014-11-02 Thread Rolf Eike Beer
Am Sonntag, 2. November 2014, 15:55:25 schrieb Erik de Castro Lopo: > Hi, > > I'm a project maintainer. I just upgraded to CMake 3.0.2 and now I'm > getting this: > > CMake Warning (dev) at CMakeLists.txt:284 (add_executable): > Policy CMP0037 is not set: Target names should not be reserved