[CMake] Using the FindBoost package

2015-05-08 Thread Edward Diener
The code is not mine but I am trying to get it to work. On Windows the code is calling into the FindBoost.cmake package via a find_package call. Before calling find_package the code sets the Boost_INCLUDE_DIR and Boost_LIBRARY_DIR to the respective Boost 'boost' and Boost 'libs' subdirectories

Re: [CMake] Cmake: VS2013: General -> Whole Program Optimization (/LTCG)

2015-05-08 Thread Paul Annetts
It's a linker flag, so for a target of "MyTarget" use: set_target_properties(MyTarget PROPERTIES LINK_FLAGS "/LTCG") (I had to do this for this exact flag, so I know this should work) Hope that helps, Paul. From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Sachin Gaikwad

Re: [CMake] When is UPDATE_COMMAND executed in External Project?

2015-05-08 Thread Soonho Kong
Soonho Kong writes: > I'm using ExternalProject_Add in my CMakeList.txt file and I'm > wondering when it's executed. Ideally, I want to execute this > whenever a user is running a build command (i.e. make/ninja). > However, it seems that this is not the case for now. Is there a way > to achieve t

Re: [CMake] when is UPDATE_COMMAND executed in External Project?

2015-05-08 Thread Soonho Kong
By re-reading my previous message, I realized that the question was mis-leading. The following is what I wanted to know: 1. When is "UPDATE_COMMAND" of external projects executed in cmake's workflow? 2. How to make UPDATE_COMMAND running every time a user is running 'make/ninja'? Best, Soonho O

[CMake] Create package for specific application bundle

2015-05-08 Thread Martin Percossi
Hello, My situation is as follows. I'm creating an OSX application with MACOSX_BUNDLE for my main target. In addition, my project creates a helper application (also a bundle), and this is copied into the PlugIns directory of the main target using an INSTALL command. So my CMake project contains tw

Re: [CMake] problems in building opencv (zlib.h: No such file or directory)

2015-05-08 Thread Jean-Christophe Fillion-Robin
Hi Saverio, Make sure you install zlib dev package. That way the header will be found on the system. On Ubuntu 14.04, you could do it using the following command: $ sudo apt-get install zlib1g-dev See http://packages.ubuntu.com/trusty/zlib1g-dev Hth Jc On Wed, May 6, 2015 at 1:44 PM, Saverio

Re: [CMake] find_file unexpected finds

2015-05-08 Thread Nils Gladitz
On 05/08/2015 03:02 PM, Jörg Kreuzberger wrote: the project now includes the correct FinLibExternV2.cmake (using include( ../libexternv1/cmake/FindLibExternV2.cmake ) in FindLibExternV2, the lib search with findfile include() for find modules? Find modules that are part of the package which t

[CMake] find_file unexpected finds

2015-05-08 Thread Jörg Kreuzberger
Hi! i have a problem with find_file, finding files in directory structures not part of the PATHS option and no other CMAKE VARIABLES relevant to find_file set. I use find_file to find external libraries in different versions, they are located in different git repos. each repo has its find scrip

[CMake] Cmake: VS2013: General -> Whole Program Optimization (/LTCG)

2015-05-08 Thread Sachin Gaikwad
Hi all, I am using: - cmake-3.0.2 - Visual Studio 2013 (Update 4) I get this log message in build logs when I build any target in my Visual Studio solution: "MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker perf

Re: [CMake] Qt help cannot find google analytics

2015-05-08 Thread Wim Bekker
Thanks. Works fine now. Brad King schreef op 2015-05-07 om 20-16: On 05/07/2015 11:00 AM, Wim Bekker wrote: I've just downloaded and installed the 3.2 QtHelp documentation. Every topic I choose comes with a page "Host www.google-analytics.com not found". That was a problem with the way the fil