[CMake] make output two two streams: concise to stdout and verbose to a file

2015-03-06 Thread Dave Yost
When I do an ordinary make, it would be nice if in addition to the the concise output going to the screen, verbose output would go to a file in the root of the build folder. This way, after the fact I can see exactly what happened with the build I just did. If I have to build again with VERBOSE

[CMake] Problem with cross-compiling and external projects

2015-03-06 Thread Richard Shaw
I've got a cmake based project that can optionally build static versions of most of its dependencies and it works fine on Linux and MSYS2+MinGW. The problem is when I try to cross compile using MinGW on Linux. I would expect cmake would be smart enough to know if the parent project is being built

Re: [CMake] CMake "permission denied" problem (Windows 7 64-bit, CMake 2.8.1)

2015-03-06 Thread Phil Smith
Another approach that I'd like to try: avoiding the CMake "magic" compiles that it uses to determine endianness and bitness. Since those are unlikely to change on our hardware without our noticing, this would work fine. Is it possible? I saw a reference that suggested it was, but haven't found i

Re: [CMake] CMake "permission denied" problem (Windows 7 64-bit, CMake 2.8.1)

2015-03-06 Thread Phil Smith
More data: I installed LockHunter (http://lockhunter.com/download.htm). It reports that no process has the file locked, but it also offers options to "Unlock and rename" and "Unlock and copy". I can do the first, which fits a vague impression I have that RENAME is easier than other file access.

Re: [CMake] Wrong behavior with 3.2.0-rc2

2015-03-06 Thread Brad King
On 03/06/2015 06:57 AM, Nils Gladitz wrote: > On 03/06/2015 10:22 AM, Pere Mato Vila wrote: >> [100%] [100%] *Generating A.txt, B.txt* >> *Generating A.txt, B.txt* Thanks for trying the release candidate and reporting this. > This seems to be the case since > [644b4688d71cc52f8499d6103495de090931

Re: [CMake] CMake "permission denied" problem (Windows 7 64-bit, CMake 2.8.1)

2015-03-06 Thread Phil Smith
Argh, meant to include the list on this response. I also just downloaded Windows Unlocker, which I've used successfully for similar-seeming problems, and it reports that the file is not locked. So how is it "access denied"?!?! -Original Message- From: Phil Smith Sent: Friday, March 06,

Re: [CMake] CMake "permission denied" problem (Windows 7 64-bit, CMake 2.8.1)

2015-03-06 Thread Bill Hoffman
On 3/6/2015 10:51 AM, Phil Smith wrote: OK, so I know the first thing people will ask is “Why are you using CMake 2.8.1?” and the answer to that is that later versions hang silently for us. The consensus is that the hangs seem to be related to out-of-source builds, which we’re currently doing bec

Re: [CMake] CMake "permission denied" problem (Windows 7 64-bit, CMake 2.8.1)

2015-03-06 Thread Phil Smith
Followup to problem, a colleague asked: >You mentioned that you had adjusted permissions on the file, but the >permissions have be correct all along the path - you might want to check the >parent directories to ensure their permissions are right. I should have noted originally: I did check the w

[CMake] CMake "permission denied" problem (Windows 7 64-bit, CMake 2.8.1)

2015-03-06 Thread Phil Smith
OK, so I know the first thing people will ask is "Why are you using CMake 2.8.1?" and the answer to that is that later versions hang silently for us. The consensus is that the hangs seem to be related to out-of-source builds, which we're currently doing because of a series of dependencies that w

Re: [CMake] How to activate SSE2 only for Win32 architecture build

2015-03-06 Thread Kevin MOLCARD
Thanks, this worked like a charm. On 3/6/15 12:55 PM, Jakub Zakrzewski wrote: I would like to activate sse2 on my Windows build but only for 32 bit. I am using the foolowing code: SET(CMAKE_CXX_FLAGS "/arch:SSE2") Does anyone know how to activate this flag only for Win32 build? Maybe like that:

Re: [CMake] How to activate SSE2 only for Win32 architecture build

2015-03-06 Thread Jakub Zakrzewski
> I would like to activate sse2 on my Windows build but only for 32 bit. > I am using the foolowing code: > SET(CMAKE_CXX_FLAGS "/arch:SSE2") > Does anyone know how to activate this flag only for Win32 build? Maybe like that: if(CMAKE_SIZEOF_VOID_P EQUAL 4) # 32-bit SET(CMAKE_CXX_FLAGS

Re: [CMake] Wrong behavior with 3.2.0-rc2

2015-03-06 Thread Nils Gladitz
On 03/06/2015 10:22 AM, Pere Mato Vila wrote: Using version 3.2.0-rc2 on the Mac OS X 10.10 with the make generator. The following example executes the custom to create A.txt and B.txt twice when building with make -jN - cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR) add_custom_target

[CMake] How to activate SSE2 only for Win32 architecture build

2015-03-06 Thread Kevin MOLCARD
Hi all, I would like to activate sse2 on my Windows build but only for 32 bit. I am using the foolowing code: SET(CMAKE_CXX_FLAGS "/arch:SSE2") However, this generates a warning for x64 build: ignoring unknown option '/arch:SSE2' Indeed, this is not needed for x64 because SSE2 is activated by d

[CMake] Wrong behavior with 3.2.0-rc2

2015-03-06 Thread Pere Mato Vila
Using version 3.2.0-rc2 on the Mac OS X 10.10 with the make generator. The following example executes the custom to create A.txt and B.txt twice when building with make -jN - cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR) add_custom_target(Main ALL DEPENDS A.txt B.txt) add_custom_comm