Re: [CMake] ExternalProject_Add not re-building when source changes

2015-04-24 Thread Andrey Pokrovskiy
I don't like my current solution for such problem, but it works for me well. Note "file(GLOB_RECURSE ..." and custom "copy" step in the end. Also you can try to google "cmake super build" which probably will provide you more ideas. include(ExternalProject) set(WEBSOCKETS_PATCH_DIR "${CMAKE_CU

[CMake] Documenting when cmake functions were added

2015-04-24 Thread Orion Poplawski
It would be really nice if the docs like: http://www.cmake.org/cmake/help/v3.2/module/CheckCXXSourceCompiles.html would indicate what version of cmake it was added in. Is this recorded anywhere? -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA, Boulder/CoRA Offic

[CMake] What is the proper way to export targets that will be split into separate binary packages?

2015-04-24 Thread Alan W. Irwin
The Fedora packager of PLplot is having trouble splitting installed results into separate binary packages because of the way that PLplot currently exports its targets. What steps do we have to do to make life easier for him? Here is the typical code we use now to export our targets. # Done only

Re: [CMake] Detecting -m32 build target on 64-bit host

2015-04-24 Thread Gregor Jasny
Hi, On 23/04/15 16:54, Mateusz Loskot wrote: > Surprisingly, I'm having trouble to figure out how to determine, > that in Linux 64-bit OS, I'm building a project with -m32 specified. > IOW, any CMake variable or macro to tell me target architecture > of a build that is being configured is 32 or 64

Re: [CMake] find_package

2015-04-24 Thread Chuck Atkins
Hi Matt, 1) (... set boost_root ...) > 2) FIND_PACKAGE(Boost 1.57 COMPONENTS log thread filesystem system) > If you're using CMake >= 3.0, then there's a Boost_NAMESPACE variable you can set that will cause the find module look for mangled library names line myboostnamespace_datetime instead of b

Re: [CMake] find_package

2015-04-24 Thread David Cole via CMake
You should keep replies on the mailing list so others can see it, and pitch in and help. If you are actually building boost using execute_process during a CMake run, then it should be able to find it with your find_package call. Perhaps you need to give the find_package in step 4 a hint to find it

Re: [CMake] find_package

2015-04-24 Thread David Cole via CMake
How do you do step 3) -- build boost? Unless the build is done and installed and ready to find before the end of step 3, there is still nothing (yet) there for the find_package in step 4 to find... David C. On Fri, Apr 24, 2015 at 9:36 AM, matzeNOTAVAILABLE . wrote: > Hi, > i am struggling so

[CMake] find_package

2015-04-24 Thread matzeNOTAVAILABLE .
Hi, i am struggling somewhat with find_package. I looked at the documentation and googled quite a bit, but i am still stuck. I alos tried stackoverflow to no avail. What i am trying to accomplish is the following: 1) See if my custom boost installation exists (using find_package) (version 1.57) 2)

[CMake] ExternalProject: how to avoid reinstalling after 'make clean'?

2015-04-24 Thread Cedric Doucet
Hello, I use the ExternalProjet_Add function to download and install third-party libraries. Here is an example of a CMakeLists file containing such a call: = cmake_minimum_required (VERSION 2.6) project (example CXX) set(CMAKE_VERBOSE_MAKEFILE ON) i

Re: [CMake] cmake 3.1.1 does not generate x64 profile for visual studio

2015-04-24 Thread Xi Shen
Ah~, so it's a hidden feature? OK, I will give a try. Thanks, David On Fri, 24 Apr 2015 16:38 J Decker wrote: > there's a 64 bit generator... > used to be a separate generator "visual studio 12 2013 Win64" but it > doesn't show in the list of generators now... > > On Thu, Apr 23, 2015 at 11:27