Re: [cmake-developers] Using CMake as a library from Python

2016-01-04 Thread Tamás Kenéz
Charles, I'd like to comment on a minor issue: CMakeLists.txt files don't specify user-specific data like source and build dirs (for a reason) yet your POC listfile contains this line: cmake.init("Ninja", "/media/dev/src/cmaketest", "/media/dev/build/cmaketest") which sets the source and

Re: [cmake-developers] Using CMake as a library from Python

2016-01-04 Thread Charles Huet
I took the time to make it work again, so I pushed it here: https://github.com/packadal/CMake/tree/cmake-python The whole branch is ugly as can be, and because I started with an old CMake and recently rebased, the python abstraction might be bloated already, but it works in the nominal case, and

Re: [cmake-developers] Using CMake as a library from Python

2016-01-04 Thread Charles Huet
Yes, this is POC-only. I felt too lazy to make an argparse object and properly perform these tasks. Obviously, the generator and source dir should be arguments. The build dir should be the execution dir of the script, to mimic CMake behavior. This should not be difficult, but as I said I wanted

[cmake-developers] [CMake 0015901]: `-Og` dose not produce debug symbol in CMake

2016-01-04 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == https://cmake.org/Bug/view.php?id=15901 == Reported By:acgtyrant Assigned To:

Re: [cmake-developers] Add command line options for deprecation message control

2016-01-04 Thread Michael Scott
Hi Brad, To round off the -W options functionality, I've implemented the -Werror and -Wno-error set of options for the two current types of messages, dev and deprecated. This includes updating the QT GUI to include new options for controlling this functionality. The third patch is not for

[Cmake-commits] CMake branch, master, updated. v3.4.1-763-ga6cbc89

2016-01-04 Thread Kitware Robot
_VERSION_MINOR 4) -set(CMake_VERSION_PATCH 20160104) +set(CMake_VERSION_PATCH 20160105) #set(CMake_VERSION_RC 1) --- Summary of changes: Source/CMakeVersion.cmake |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/

Re: [CMake] Get target name from command line for IF statement

2016-01-04 Thread Attila Krasznahorkay
Hi Yann, I have no idea what LINKER_SCATTER_FILE does, but... if( TARGET ) is a check that will evaluate to true if a target named *exists*. In this configuration neither "target_1" or "target_2" exist at the point when you run this check. So LINKER_SCATTER_FILE will always be set to

Re: [CMake] fixup bundle vs Qy 5.5.1 and rpaths

2016-01-04 Thread Gregory Van Vooren
That solved my problem indeed. Thank you very much (and happy new year). Kind regards, Greg. > On 18 Dec 2015, at 16:15, clin...@elemtech.com wrote: > > > It appears you need to add the directory(ies) in the Qt installation > containing the Qt libraries to your DIRS. > > set( DIRS >

[cmake-developers] [CMake 0015902]: ExternalProject Module doesn't work with GHS Multi Generator and Git

2016-01-04 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == https://public.kitware.com/Bug/view.php?id=15902 == Reported By:iainmeikle Assigned To:

Re: [CMake] I can not set CMAKE_BUILD_TYPE in CMakeList.txt

2016-01-04 Thread Attila Krasznahorkay
Hi Isaac, ccmake will only allow you to modify cache variables. When you call set( CMAKE_BUILD_TYPE RelWithDebInfo ) , this creates a local variable in your CMakeLists.txt file. This way it should *always* override whatever you set on the command line, or as a cache variable. If you want to

[CMake] I can not set CMAKE_BUILD_TYPE in CMakeList.txt

2016-01-04 Thread Isaac Ge
Hi anyone, I find the `set(CMAKE_BUILD_TYPE RelWithDebInfo)` in CMakeList.txt does not work, because the actual build type show by ccmake is empty. So I have to enter the correct build type in ccmake or add command argument `-D CMAKE_BUILD_TYPE=RelWithDebInfo` while cmake. Any idea? Thank you! --

[cmake-developers] [CMake 0015903]: pkg_search_module no longer caches _PREFIX, _LIBDIR, _INCLUDEDIR

2016-01-04 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=15903 == Reported By:Bernd Lörwald Assigned To:

[CMake] Using "Fixup_Bundle" on a single library?

2016-01-04 Thread Michael Jackson
During our packaging process one of our support libraries is getting missed for various reasons (severe edge case). Is it possible to use the “Fixup_bundle” CMake function with a single library? Or add that single library as an additional library that needs to be adjusted? Thanks -- Michael A.

Re: [CMake] Error generating using "NMake Makefiles JOM"

2016-01-04 Thread Bill Church
Yes, jom is in the path. However, someone very brilliant in the IT department made it such that the system PATH and user PATH equaled the same strings, causing my overall PATH to be way too long for Windows' liking. So the jom part of the path was being truncated out. I wouldn't have thought of

Re: [CMake] Error generating using "NMake Makefiles JOM"

2016-01-04 Thread Tom Kacvinsky
On Sun, Jan 3, 2016 at 11:05 PM, Bill Church wrote: > I've used this option successfully for a while, but with an older version > of CMake (3.x, unsure which one exactly). Recently had to do a full > wipe/reinstall of my machine, so I pulled down the latest CMake 3.4.1,

Re: [cmake-developers] Profile Cmake scripts

2016-01-04 Thread Ben Boeckel
On Sun, Dec 27, 2015 at 22:04:14 +0100, Dimitar Yordanov wrote: > I agree with you. Running valgrind directly on the cmake binary > provides useful information: I can see which internal cmake functions > are used the most and consume most of the time. > > Nevertheless, I think it would be useful