[CMake] Listing generated source files in cmake project

2015-02-24 Thread Dmytro Poplavskiy
Hello, I have some source files generated as a part of build process, generated using add_custom_command(). Building works fine, but would be nice to have generated source files to be displayed in IDE project (QtCreator using CodeBlocks generator). I tried to use add_custom_target(... SOURCES

Re: [CMake] CMP0026 - Disallow use of the LOCATION target property

2015-02-24 Thread Alexander Neundorf
On Tuesday, February 24, 2015 20:14:23 Stephen Kelly wrote: > Jifeng ZHANG wrote: > > Any idea when CMake 4.0 is planned to release? So we can get a general > > idea when the old behavior will stop working. > > What will you do when it is released and the LOCATION property does stop > working for

Re: [CMake] Setting build type

2015-02-24 Thread J Decker
I use a different directory to build release and debug versions if you didn't delete, then when it goes to build partial things, the .obj files will still be newer than the .c files and will cause mixed release-debug builds which generally results in bizarre crashes. Once chosen, can't change

[CMake] Setting build type

2015-02-24 Thread Adam Getchell
Hello all, I've browsed this thread: http://www.cmake.org/pipermail/cmake/2008-September/023808.html But it doesn't work. My project is set to Release regardless, whether I do: project( CDT-plusplus_ ) set(CMAKE_BUILD_TYPE RelWithDebInfo) Or: # # If the user specifies -DCMAKE_BUILD_TYPE on th

Re: [CMake] CMP0026 - Disallow use of the LOCATION target property

2015-02-24 Thread Stephen Kelly
Jifeng ZHANG wrote: > Any idea when CMake 4.0 is planned to release? So we can get a general > idea when the old behavior will stop working. What will you do when it is released and the LOCATION property does stop working for build targets? Whatever it is, any reason not to do it now? Thanks,

Re: [CMake] Problems with combo CMake/MSVC2013/Qt5

2015-02-24 Thread Stephen Kelly
Jakob van Bethlehem wrote: > Dear users, > set(CMAKE_PREFIX_PATH "C:/Qt/Qt5.4.0/5.4/msvc2013_64_opengl/lib/cmake") Don't do this. Pass CMAKE_PREFIX_PATH as an argument to cmake. > The CMakeLists.txt file in the subfolder looks like this: > > CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0) This has

Re: [CMake] Module CMakeParseArguments: confusing last paragraph in documentation

2015-02-24 Thread Marcel Loose
I guess that would imply that "not" is missing twice, [...] would not be empty [...] and [...] would not be set to TRUE [...]. Marcel. On 24/02/15 12:31, Petr Kmoch wrote: > My guess is there's a "not" missing between "would" and "result in > MY_INSTALL_DESTINATION set to" > > Petr >

[CMake] Problems with combo CMake/MSVC2013/Qt5

2015-02-24 Thread Jakob van Bethlehem
Dear users, It has been a while since I used CMake and it's the first time I'm using it on Windows/MSVC2013, so hopefully I'm not missing something obvious. I tried to create the most basic example that shows the problem. I'm trying to compile a subfolder of my Qt5 project into a shared library.

[CMake] [ANNOUNCE] CMake 3.2.0-rc2 now ready for testing!

2015-02-24 Thread Robert Maynard
I am proud to announce the CMake 3.2 second release candidate. Sources and binaries are available at: http://www.cmake.org/download/ http://www.cmake.org/files/v3.2/?C=M;O=D Documentation is available at: http://www.cmake.org/cmake/help/v3.2 Release notes appear below and are also publishe

Re: [CMake] Module CMakeParseArguments: confusing last paragraph in documentation

2015-02-24 Thread Petr Kmoch
My guess is there's a "not" missing between "would" and "result in MY_INSTALL_DESTINATION set to" Petr On Tue, Feb 24, 2015 at 12:05 PM, Marcel Loose wrote: > Hi all, > > Several times I've read the last paragraph of the documentation of module > CMakeParseArguments, but I can't get my head ar

[CMake] Module CMakeParseArguments: confusing last paragraph in documentation

2015-02-24 Thread Marcel Loose
Hi all, Several times I've read the last paragraph of the documentation of module CMakeParseArguments, but I can't get my head around it. Keywords terminate lists of values, e.g. if directly after a one_value_keyword another recognized keyword follows, this is interpreted as the begin

Re: [CMake] cmake shared library exported symbols on 64bit AIX XLC compiler

2015-02-24 Thread Michael Hufer
Hi Roman, you approach (" right after ${CMAKE_XL_CreateExportList} in XL.cmake and then add -X32/-X64 into CMAKE_XL_CreateExportList_FLAGS in your CMakeLists.txt") did not work. It generated the attached link.txt, where it did not replace with "-X64" (I set it with "set( CMAKE_XL_CreateExpor

Re: [CMake] CMP0026 - Disallow use of the LOCATION target property

2015-02-24 Thread Jifeng ZHANG
Thank you Steve and NoRulez. We actually make some manipulations on the string (TEST_PATH) that returned from get_target_property, before we pass it to add_test. So if we directly pass the generator expression, it won't work. We need to change this part obviously. Any idea when CMake 4.0 is plan