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

2015-04-23 Thread J Decker
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 PM, Xi Shen wrote: > Hi, > > I am using cmake 3.1.1 on my Windows 7 64bit system. I have Visual Studio > 2013 installed.

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

2015-04-23 Thread Scott Aron Bloom
What is your cmake generator being used? For Visual Studio 2013, you will need to use cmake –G “Visual Studio 12 2013 Win64” Scott From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Xi Shen Sent: Thursday, April 23, 2015 11:28 PM To: cmake@cmake.org Subject: [CMake] cmake 3.1.1 does not

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

2015-04-23 Thread Xi Shen
Hi, I am using cmake 3.1.1 on my Windows 7 64bit system. I have Visual Studio 2013 installed. The project I created with cmake works and can build with msbuild. But it only build the x86 version. If I try: msbuild /property:Platform=x64 myproj.vcproj I got error says that the x64 profile does

[CMake] ExternalProject_Add not re-building when source changes

2015-04-23 Thread Rob McDonald
I've used ExternalProject_Add to trick CMake into supporting two compilers to build my project. Part of my project needs OpenMP, but other parts do not. So, on MacOS, I would prefer to build most of the project with CLang, but the OpenMP requiring part with gcc. I have CMake set up to detect whe

Re: [CMake] FindBoost.cmake issue while targeting 32-bit build on Linux 64-bit

2015-04-23 Thread Mateusz Loskot
On 23 April 2015 at 20:58, Klaim - Joël Lamotte wrote: > I believe that this issue is with Boost not having a way to specify which > target architecture is the build, > which prevent any CMake script to be able to identify which build is > installed. Joel, Thanks for confirming what's the issue.

Re: [CMake] FindBoost.cmake issue while targeting 32-bit build on Linux 64-bit

2015-04-23 Thread Klaim - Joël Lamotte
I believe that this issue is with Boost not having a way to specify which target architecture is the build, which prevent any CMake script to be able to identify which build is installed. Assuming that the build arch is the same than the OS is not useful on Windows where most applications still nee

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

2015-04-23 Thread Mateusz Loskot
On 23 April 2015 at 18:04, Nils Gladitz wrote: > On 23.04.2015 18:00, Mateusz Loskot wrote: >> >> It's better, indeed, but what about >> >> "This is set to the size of a pointer on the target machine for which >> the (machine) code is generated." > > > Hm that is in my opinion too redundant. > The

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

2015-04-23 Thread Nils Gladitz
On 23.04.2015 18:00, Mateusz Loskot wrote: It's better, indeed, but what about "This is set to the size of a pointer on the target machine for which the (machine) code is generated." Hm that is in my opinion too redundant. There is only one target machine as far as cmake is concerned and there

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

2015-04-23 Thread Mateusz Loskot
On 23 April 2015 at 17:50, Nils Gladitz wrote: > On 23.04.2015 17:32, Mateusz Loskot wrote: >> >> So, the documentation is imprecise in this regard, isn't it? >> >> Best regards, > > > Is this better? > http://www.cmake.org/cmake/help/git-next/variable/CMAKE_SIZEOF_VOID_P.html It's better, indeed

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

2015-04-23 Thread Nils Gladitz
On 23.04.2015 17:32, Mateusz Loskot wrote: So, the documentation is imprecise in this regard, isn't it? Best regards, Is this better? http://www.cmake.org/cmake/help/git-next/variable/CMAKE_SIZEOF_VOID_P.html Nils -- Powered by www.kitware.com Please keep messages on-topic and check the CMa

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

2015-04-23 Thread Mateusz Loskot
On 23 April 2015 at 17:20, Nils Gladitz wrote: > On 23.04.2015 17:08, Mateusz Loskot wrote: >> >> I know this trick, but this is not what I'm looking for, unless I >> misread the documentation. >> >> The doc says: >> >> "This is set to the size of a pointer on the machine" >> >> but not size of po

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

2015-04-23 Thread Nils Gladitz
On 23.04.2015 17:08, Mateusz Loskot wrote: I know this trick, but this is not what I'm looking for, unless I misread the documentation. The doc says: "This is set to the size of a pointer on the machine" but not size of pointer on *target* architecture of a build. I believe I formulated my qu

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

2015-04-23 Thread Mateusz Loskot
On 23 April 2015 at 16:57, Nils Gladitz wrote: > On 04/23/2015 04:54 PM, Mateusz Loskot wrote: >> >> Hi, >> >> 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 tar

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

2015-04-23 Thread Nils Gladitz
On 04/23/2015 04:54 PM, Mateusz Loskot wrote: Hi, 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

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

2015-04-23 Thread Mateusz Loskot
Hi, 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 bit? Best regards, -- Mateusz Loskot, http://

[CMake] FindBoost.cmake issue while targeting 32-bit build on Linux 64-bit

2015-04-23 Thread Mateusz Loskot
Hi, Here is the situation outlined: - project has Boost as optional dependency - running CMake on Linux 64-bit to build 32-bit binaries - CXXFLAGS=-m32 is specified - Boost 64-bit binaries are installed - Boost 32-bit binaries are *not* installed Expected result: - Boost 32 is not found, Boost is

Re: [CMake] Don't download external projects again after calling "make clean"

2015-04-23 Thread Cedric Doucet
Eigen is just an example of an external library which is very fast to download and install with ExternalProject_Add. It is convenient here to let you check that you have the same problem as mine on your machine. However, I have other external libraries which have to be compiled. - Mail or

Re: [CMake] Don't download external projects again after calling "make clean"

2015-04-23 Thread Cedric Doucet
> > Does the extracted eigen source tree look like it's a proper un-tarred > > eigen source directory? Yes, everything seems ok. > > Does this simple example work for you? (copied/pasted from another > > recent CMake mailing list discussion...) Yes, it works! > > Silly question, but do you ne

Re: [CMake] Don't download external projects again after calling "make clean"

2015-04-23 Thread Cedric Doucet
I don't know why but providing my own STAMP_DIR seems to solve the problem: STAMP_DIR ${EXTERNAL_DIR}/eigen/stamp Hope it helps! Cédric - Mail original - > De: "David Cole" > À: "Cedric Doucet" > Cc: cmake@cmake.org > Envoyé: Jeudi 23 Avril 2015 13:56:36 > Objet: Re: [CMake] Don't d

Re: [CMake] Do build after GIT_TAG changed in ExternalProject_Add

2015-04-23 Thread Cedric Doucet
Yes, I am really sorry for the noise! :-/ - Mail original - > De: "David Cole" > À: "Cedric Doucet" > Cc: "typ1232" , cmake@cmake.org > Envoyé: Jeudi 23 Avril 2015 13:58:27 > Objet: Re: [CMake] Do build after GIT_TAG changed in ExternalProject_Add > > I think you meant to reply on th

Re: [CMake] Do build after GIT_TAG changed in ExternalProject_Add

2015-04-23 Thread David Cole via CMake
I think you meant to reply on the other thread with this one... :-) D On Thu, Apr 23, 2015 at 7:55 AM, Cedric Doucet wrote: > > I don't know why but providing my own STAMP_DIR seems to solve the problem: > > STAMP_DIR ${EXTERNAL_DIR}/eigen/stamp > > Hope it helps! > > Cédric > > > - Mail o

Re: [CMake] Don't download external projects again after calling "make clean"

2015-04-23 Thread David Cole via CMake
It looks correct. I don't understand what the error is. It looks like the download and extract succeeds, but then it simply doesn't move on to the next step of trying to configure with CMake... Does the extracted eigen source tree look like it's a proper un-tarred eigen source directory? Does thi

Re: [CMake] Do build after GIT_TAG changed in ExternalProject_Add

2015-04-23 Thread Cedric Doucet
I don't know why but providing my own STAMP_DIR seems to solve the problem: STAMP_DIR ${EXTERNAL_DIR}/eigen/stamp Hope it helps! Cédric - Mail original - > De: "David Cole via CMake" > À: "typ1232" > Cc: cmake@cmake.org > Envoyé: Jeudi 23 Avril 2015 13:51:06 > Objet: Re: [CMake] D

Re: [CMake] Do build after GIT_TAG changed in ExternalProject_Add

2015-04-23 Thread David Cole via CMake
Hmm. I am seeing the same behavior you are, even with the older CMake 2.8.12.2 -- the update step does run, but steps after that, which are supposed to depend on update, are not re-running. I think your intuitive expectation is correct, and that configure/build/install should run after changin

Re: [CMake] cmp0026, file(GENERATE...), and configure_file

2015-04-23 Thread Alan W. Irwin
On 2015-04-23 13:32+0200 Nils Gladitz wrote: On 23.04.2015 13:19, Alan W. Irwin wrote: Is there a standard way such a function could be used officially as part of CMake? In other words, are there some official CMake functions now that are not written in C++ but are instead written as CMake la

Re: [CMake] cmp0026, file(GENERATE...), and configure_file

2015-04-23 Thread David Cole via CMake
Of the modules, many of the "non-Find*" modules are exactly that. Of the list here: http://www.cmake.org/cmake/help/v3.2/manual/cmake-modules.7.html The ones that pop out to me as obvious "CMake language function providers" are ExternalProject, GetPrerequisites, BundleUtilities, ProcessorCount. M

Re: [CMake] cmp0026, file(GENERATE...), and configure_file

2015-04-23 Thread Alan W. Irwin
On 2015-04-23 04:19-0700 Alan W. Irwin wrote: On 2015-04-23 06:47-0400 David Cole wrote: Should it be configure_file(GENERATE or file(CONFIGURE_AND_GENERATE ?? The first (or configure_file_generate, see below) would be my preference. In the meantime, while it is certainly clumsy to do the

Re: [CMake] cmp0026, file(GENERATE...), and configure_file

2015-04-23 Thread Nils Gladitz
On 23.04.2015 13:19, Alan W. Irwin wrote: Is there a standard way such a function could be used officially as part of CMake? In other words, are there some official CMake functions now that are not written in C++ but are instead written as CMake language functions Many (mostly those that don

Re: [CMake] Don't download external projects again after calling "make clean"

2015-04-23 Thread Cedric Doucet
Thank you very much. Your remarks are very helpful to me to understand how it works. I hope the following file is now correct: == project (example CXX) set(CMAKE_VERBOSE_MAKEFILE ON) include(ProcessorCount) ProcessorCount(N) if(NOT N EQUAL 0) set(CMAKE_BUILD_FLAGS -j${N}) end

Re: [CMake] cmp0026, file(GENERATE...), and configure_file

2015-04-23 Thread David Cole via CMake
"5." is more work, but a good idea... And since your recent activity on the mailing list rivals my own, you'd never hear me calling you "an outsider". ;-) I tend to think things like this (problems without an obvious, easy, code-it-right-up solution...) should be slept on for a few nights/weeks b

Re: [CMake] cmp0026, file(GENERATE...), and configure_file

2015-04-23 Thread Petr Kmoch
I hope you don't mind an outsider chipping in with a potential 5th possibility: 5. parse the file to be configured to discover which variables will be necessary for the configuration, and save only *their* values. For any but the most insane configure_file() calls, that should be a tiny subset of

Re: [CMake] cmp0026, file(GENERATE...), and configure_file

2015-04-23 Thread Alan W. Irwin
On 2015-04-23 06:47-0400 David Cole wrote: Should it be configure_file(GENERATE or file(CONFIGURE_AND_GENERATE ?? The first (or configure_file_generate, see below) would be my preference. In the meantime, while it is certainly clumsy to do the two separate commands everywhere, you could writ

Re: [CMake] Don't download external projects again after calling "make clean"

2015-04-23 Thread David Cole via CMake
I don't understand what the error is here, but here are some comments: (1) CMAKE_INSTALL_PREFIX=$ The $ is unnecessary and incorrect in this context. The literal string is the thing that ExternalProject will substitute when it is processed into custom commands... (2) ONLY the DOWNLOAD_DIR param

Re: [CMake] cmp0026, file(GENERATE...), and configure_file

2015-04-23 Thread David Cole via CMake
There's also a fourth possibility: 4. Delay the configure processing for these "configure and generate" files with the final variable values at the END of the configure (*at* generate time). Then there are no memory or temp file issues, but you have a mismatch with the existing (and reasonably ex

Re: [CMake] Don't download external projects again after calling "make clean"

2015-04-23 Thread Cedric Doucet
Hello David, I am using CMake 3.2.2. I installed CMake from the sources because I use "modules" to manage my libraries. But it's ok now: I modified the installation so that to support https. Unfortunately, I still have a problem. :( Maybe you could help me! Here is my CMakeLists.txt: ==

Re: [CMake] cmp0026, file(GENERATE...), and configure_file

2015-04-23 Thread David Cole via CMake
Should it be configure_file(GENERATE or file(CONFIGURE_AND_GENERATE ?? In the meantime, while it is certainly clumsy to do the two separate commands everywhere, you could write a CMake language function(configure_file_generate ...) that takes the same args as configure_file, but does the two step

Re: [CMake] cmp0026, file(GENERATE...), and configure_file

2015-04-23 Thread Nils Gladitz
On 04/23/2015 12:13 PM, Alan W. Irwin wrote: I think your idea of configure_file(GENERATE...) (where configure_file occurs at configure-time without GENERATE to be backwards compatible, but it occurs at generate-time if the new GENERATE signature is used) is an excellent way to allow users to rep

Re: [CMake] cmp0026, file(GENERATE...), and configure_file

2015-04-23 Thread Alan W. Irwin
On 2015-04-21 15:54-0400 David Cole wrote: I can only imagine that would cause IMMENSE problems. Good point about keeping backwards compatibility, but your shift key got stuck. :-) I depend on configure_file being an immediate action in many many many places. (i.e. -- the very next line of

[CMake] CMake 3.2.2 generates too many virtual folders for Codeblocks project

2015-04-23 Thread roman
Hi, i have a project in the path D:\folder1\folder2\prj1, all sources and CMakeLists.txt are in this folder 'prj1'. CMake generates for the Codeblocks project file in which the source files are located in a virtual folders with the path not corresponding to the root folder of the project 'prj1