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 se

[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! --

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 t

[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 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, but > when I go to genera

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 "file_2

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 > ${APP}