Re: [CMake] how to build cmake with mingw and msys?

2012-08-14 Thread Doug
For what it's worth, it works for me? I'm using stock mingw on windows 7, with these settings: doug@Zed e:/lib/cmake $ which gcc /mingw/bin/gcc.exe doug@Zed e:/lib/cmake $ which make /usr/bin/make.exe doug@Zed e:/lib/cmake $ echo $PATH .:/usr/local/bin:/mingw/bin:/usr/bin:/c/Windows/system32:/c

Re: [CMake] Generator for Android.mk

2012-08-14 Thread Doug
No. ...but you can do it manually, like: cmake/Android.mk.in: LOCAL_PATH := include $(CLEAR_VARS) # Build include list LOCAL_C_INCLUDES := @PROJECT_ANDROID_INCLUDES@ # Build source list LOCAL_SRC_FILES := @PROJECT_ANDROID_SOURCES@ # Flags LOCAL_CFLAGS := -std=c99 # Build library LOCAL_MODULE

Re: [CMake] how to build cmake with mingw and msys?

2012-08-14 Thread Alan W. Irwin
On 2012-08-14 09:17-0400 LM wrote: I built and used cmake on DeLi Linux with no issues, but every time I try it on Windows, I seem to have problems. My latest attempt, I just downloaded version 2.8.9. I'm using mingw (gcc 4.6.2) and msys. From within msys, I tried running ./bootstrap --system

Re: [CMake] Bug fix requests for the *next* release of CMake...

2012-08-14 Thread David Golub
http://www.cmake.org/Bug/view.php?id=13202 http://www.cmake.org/Bug/view.php?id=13203 -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of David Cole Sent: Friday, August 10, 2012 4:48 PM To: cmake Subject: [CMake] Bug fix requests for the *next* r

Re: [CMake] how to build cmake with mingw and msys?

2012-08-14 Thread John Poole
I will not be at my windows machine for several day where I've been trying cmake in MinGW; but I think I had the same problem you have run into. I think the path construction is very sensitive, have your tried "/c/MinGW/bin/gcc.exe" or "/c:/MinGW/bin/gcc.exe" On Tue, Aug 14, 2012 at 6:17 AM, LM

[CMake] Question about IMPORTED_LINK_INTERFACE_LIBRARIES property

2012-08-14 Thread Pritchett-Sheats, Lori
Are link flags allowed in the IMPORTED_LINK_INTERFACE_LIBRARIES property for imported targets the same way TARGET_LINK_LIBRARIES allows link flags? Lori A. Pritchett-Sheats, PhD. CCS-2, Computational Physics and Methods Office: 505-665-6675 Fax: 505-665-4972 Los Alamos National Laboratory P

Re: [CMake] how to build cmake with mingw and msys?

2012-08-14 Thread Amine Chadly
Hi, Isn't it a problem with the where it's looking for the compiler ? is c:/MinGW/bin/gcc.exe an equivalent of /mingw/bin/gcc.exe ? You can try to play around with a simple Makefile and setting the CC environment variable to see what are the correct values. Hope it helps... -- Amine LM wrote

Re: [CMake] CMake 2.8.8 : Reproducible Crash in Mac OS X 10.8

2012-08-14 Thread Jerry Krinock
On 2012 Aug 13, at 13:42, Bill Hoffman wrote: > But, if you use the Xcode generator with cmake it would work just fine. So, > as long as you only use cmake -GXcode then this is not an issue. Well, I can't test that because I don't want to uninstall the Xcode-Command Line Tools. But it certa

Re: [CMake] Ninja on windows ( latest ninja from git, cmake 2.8.9 )

2012-08-14 Thread Eric Noulard
2012/8/14 Malfettone, Kris : > So I found the “–d explain” option of ninja and it says that it thinks my > boost libraries / other library includes are “dirty”. The only think I can > think of here is that they are on a network drive and not on my local > machine. Any thoughts on that? If those

Re: [CMake] Ninja on windows ( latest ninja from git, cmake 2.8.9 )

2012-08-14 Thread Bill Hoffman
On 8/14/2012 2:23 PM, Malfettone, Kris wrote: Nothing special in my opinion. I am trying to reproduce it with something simpler than my code base. With an ultra trivial CMake setup it works fine. Is there some sort of debugging I can enable to see why it thinks the files are changed? -Kris

Re: [CMake] How to build only when file contents are actually changed?

2012-08-14 Thread Eric Noulard
2012/8/14 Peng Yu : >>> o Makepp will not recompile if only comments or whitespace in >>> C/C++ sources have changed. This is especially important for header >>> files which are automatically generated by other programs and are >>> included in many modules. Even if the date has changed beca

Re: [CMake] Ninja on windows ( latest ninja from git, cmake 2.8.9 )

2012-08-14 Thread Malfettone, Kris
So I found the "-d explain" option of ninja and it says that it thinks my boost libraries / other library includes are "dirty". The only think I can think of here is that they are on a network drive and not on my local machine. Any thoughts on that? -Kris From: Malfettone, Kris [mailto:kris.

Re: [CMake] Ninja on windows ( latest ninja from git, cmake 2.8.9 )

2012-08-14 Thread Malfettone, Kris
Nothing special in my opinion. I am trying to reproduce it with something simpler than my code base. With an ultra trivial CMake setup it works fine. Is there some sort of debugging I can enable to see why it thinks the files are changed? -Kris From: David Cole [mailto:david.c...@kitware.co

Re: [CMake] How to build only when file contents are actually changed?

2012-08-14 Thread Peng Yu
>> o Makepp will not recompile if only comments or whitespace in >> C/C++ sources have changed. This is especially important for header >> files which are automatically generated by other programs and are >> included in many modules. Even if the date has changed because the >> file was re

Re: [CMake] Ninja on windows ( latest ninja from git, cmake 2.8.9 )

2012-08-14 Thread David Cole
Definitely not known. In fact, the opposite is true here on my ninja build trees for CMake itself. A no-op build results in a "no work to do" message from ninja. Is there anything unusual about your CMakeLists.txt files? Are your source files accidentally dated in the future? (Did you just return

[CMake] Ninja on windows ( latest ninja from git, cmake 2.8.9 )

2012-08-14 Thread Malfettone, Kris
I am trying to use ninja on windows. Everything seems to work correctly ( compilation, linking, install rules, etc... ) except for testing whether or not a file has changed. No matter the state of the tree, ninja always builds the entire project. I tried searching the bug tracker and mailing

[CMake] Updated: CMake 2.8.9-1

2012-08-14 Thread Bill Hoffman
CMake 2.8.9-1 is now available on Cygwin mirrors. Some of the notable changes in this release are: - the new Ninja generator is now enabled by default on Windows (and now Mac, too!) - added POSITION_INDEPENDENT_CODE target property, automatically adds -fPIC and -fPIE for compilers tha

Re: [CMake] How to build only when file contents are actually changed?

2012-08-14 Thread Michael Wild
On 08/14/2012 04:32 PM, Peng Yu wrote: >> You miss the point. If CMake wanted to offer hash-based checking, it >> would need to do so for *all* backends, not just GNU Make. Good look >> implementing that hack in Visual Studio or Xcode... > > I get your point that there is not an easy to do content

Re: [CMake] How to build only when file contents are actually changed?

2012-08-14 Thread Peng Yu
> You miss the point. If CMake wanted to offer hash-based checking, it > would need to do so for *all* backends, not just GNU Make. Good look > implementing that hack in Visual Studio or Xcode... I get your point that there is not an easy to do content based dependency (hash as an approximation) f

[CMake] FindDCMTK.cmake bug, asking for a bump.

2012-08-14 Thread Kent Williams
I logged this bug earlier this year: http://www.cmake.org/Bug/view.php?id=12916 The problem is that the FindDCMTK.cmake file leaves out a required library from DCMTK_LIBRARIES. I included a one line patch to fix the problem. According to the comment in the bug from David Cole, this is where I co

[CMake] Generator for Android.mk

2012-08-14 Thread John Barnum
I understand that you can build Android with make files and the standalone-toolchain (still in beta), but is there a generator that produces Android.mk files using the syntax in the NDK specification? Thanks, John -- Powered by www.kitware.com Visit other Kitware open-source projects at http

[CMake] how to build cmake with mingw and msys?

2012-08-14 Thread LM
I built and used cmake on DeLi Linux with no issues, but every time I try it on Windows, I seem to have problems. My latest attempt, I just downloaded version 2.8.9. I'm using mingw (gcc 4.6.2) and msys. From within msys, I tried running ./bootstrap --system-libs --system-zlib --system-bzip2 --s

Re: [CMake] How to build only when file contents are actually changed?

2012-08-14 Thread Michael Wild
On 08/14/2012 02:41 PM, Peng Yu wrote: >> Again, using ccache solves this much more elegantly. And calling md5sum >> twice is also not very nice... > > I'm not sure ccache replaces hash. My understanding is that ccache > speed up individual compilation, but all the targets that depends on > it are

Re: [CMake] How to build only when file contents are actually changed?

2012-08-14 Thread Peng Yu
> Again, using ccache solves this much more elegantly. And calling md5sum > twice is also not very nice... I'm not sure ccache replaces hash. My understanding is that ccache speed up individual compilation, but all the targets that depends on it are still compiled. With hash, a file is checked fir

Re: [CMake] How to build only when file contents are actually changed?

2012-08-14 Thread Michael Wild
On 08/14/2012 01:18 PM, Peng Yu wrote: >> CMake really leaves the decision when to recompile something to the >> backend, i.e. GNU Make, Xcode, Visual Studio, ninja etc. It merely >> defines dependencies and then lets the actual build tool handle the >> rest, and most of them choose to use simple t

Re: [CMake] How to build only when file contents are actually changed?

2012-08-14 Thread Peng Yu
> CMake really leaves the decision when to recompile something to the > backend, i.e. GNU Make, Xcode, Visual Studio, ninja etc. It merely > defines dependencies and then lets the actual build tool handle the > rest, and most of them choose to use simple time-stamps instead of Although GNU Make na

Re: [CMake] How to build only when file contents are actually changed?

2012-08-14 Thread J Decker
Pretty much every build system will rebuild if you touch the file. This is a way to force it to compile it's a feature not a bug :) On Mon, Aug 13, 2012 at 10:56 PM, Michael Wild wrote: > CMake really leaves the decision when to recompile something to the > backend, i.e. GNU Make, Xcode, Visu