Re: [CMake] RC3: Multiple ZERO_CHECK warnings

2009-10-27 Thread John Drescher
On Tue, Oct 27, 2009 at 6:35 PM, L.M. de Vries wrote: > Hi, > > Running RC3 to generate a VS2008-project on Windows Vista generates the > following warning "ZERO_CHECK already exists"  (2 or 3 times). > After that it works fine... > This did not occur on 2.6. Any ideas? > There is a second thread

[CMake] RC3: Multiple ZERO_CHECK warnings

2009-10-27 Thread L.M. de Vries
Hi, Running RC3 to generate a VS2008-project on Windows Vista generates the following warning "ZERO_CHECK already exists" (2 or 3 times). After that it works fine... This did not occur on 2.6. Any ideas? Luis ___ Powered by www.kitware.com Visit ot

Re: [CMake] Strange build environments (MSVC and GCC both)

2009-10-27 Thread David Cole
"ExtSubProj" is the name of a custom CMake target. You should be able to: add_dependencies(mylib1 ExtSubProj) add_dependencies(mylib2 ExtSubProj) And get ExtSubProj should build first before mylib1 and mylib2. (Assuming mylib1 and mylib2 are add_library targets.) Also works with add_executable ta

Re: [CMake] Problem with CMake 2.8

2009-10-27 Thread Bill Hoffman
Robert Dailey wrote: Thanks for the info. Speaking of the nightly build, why is the nightly version 2.7 and the RC is 2.8? Shouldn't the nightly always be greater or the same version as the RC builds? I'm confused. Keep looking: http://www.cmake.org/files/vCVS/?C=M;O=D The Nightly is 2.9,

Re: [CMake] Problem with CMake 2.8

2009-10-27 Thread Robert Dailey
On Tue, Oct 27, 2009 at 6:30 PM, Bill Hoffman wrote: > Robert Dailey wrote: > >> Hello, >> >> I'm using the latest RC build of CMake 2.8 and I noticed a new annoyance. >> Please follow these steps: >> >> 1. Create a CMakeList.txt that sets up a project with any number of >> >> source files

Re: [CMake] Problem with CMake 2.8

2009-10-27 Thread Bill Hoffman
Robert Dailey wrote: Hello, I'm using the latest RC build of CMake 2.8 and I noticed a new annoyance. Please follow these steps: 1. Create a CMakeList.txt that sets up a project with any number of source files in it (4 should do fine). 2. On Windows, run the cmake-gui tool to gene

[CMake] Problem with CMake 2.8

2009-10-27 Thread Robert Dailey
Hello, I'm using the latest RC build of CMake 2.8 and I noticed a new annoyance. Please follow these steps: 1. Create a CMakeList.txt that sets up a project with any number of source files in it (4 should do fine). 2. On Windows, run the cmake-gui tool to generate for Visual Studio 9

[CMake] Regular Expression weirdness (2.6 & 2.8RC3)

2009-10-27 Thread L.M. de Vries
Hi, In the folder "Spatial" there are multiple files. Among them are the following: cspacedefconfig.h cspacedef.h cspacediscr.h cspacediscrconfig.h Executing the following commands: FILE(GLOB SPATIAL_HDR1 "Spatial/csp*[^config].h") FILE(GLOB SPATIAL_HDR2 "Spatial/csp*.h") MESSAGE(STATUS ${S

Re: [CMake] Strange build environments (MSVC and GCC both)

2009-10-27 Thread Dixon, Shane
I've created this as an external project: ExternalProject_Add( ExtSubProj URL "${CMAKE_CURRENT_SOURCE_DIR}/MySubProj" CMAKE_GENERATOR "NMake Makefiles" CMAKE_ARGS -DEMUL=ON INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR} ) I presume that I can go back later and also config

Re: [CMake] Why drop -D from wxWidgets_DEFINITIONS ?

2009-10-27 Thread Werner Smekal
Hi Orion, On Oct 27, 2009, at 6:53 PM, Orion Poplawski wrote: On 10/26/2009 12:44 PM, Orion Poplawski wrote: in 2.8.0, FindwxWidgets.cmake strips -D from wxWidgets_DEFINITIONS. Why? Note that this is breaking previously working builds of plplot because of the missing "-D". I don't see

Re: [CMake] -fPIC with executables

2009-10-27 Thread James Bigler
On Tue, Oct 27, 2009 at 12:43 PM, Brad King wrote: > James Bigler wrote: > > I noticed in some commit message to CMake a while ago that -fPIC was > > removed from executable compilation. > > > > Would anyone care to comment on why this is? I must admit I thought it > > wouldn't hurt it to have i

Re: [CMake] target DEPENDS are ignored if the target is also used for the COMMAND

2009-10-27 Thread Alan W. Irwin
On 2009-10-27 14:01-0400 Brad King wrote: Alan W. Irwin wrote: cmake version 2.6-patch 4; Unix Makefiles; Linux (Debian stable with bootstrap build of CMake-2.6.4); What's the easiest way to try the "generator" test here (for Unix Makefiles) so we are doing exactly the same test? Get a CMa

Re: [CMake] -fPIC with executables

2009-10-27 Thread Brad King
James Bigler wrote: > I noticed in some commit message to CMake a while ago that -fPIC was > removed from executable compilation. > > Would anyone care to comment on why this is? I must admit I thought it > wouldn't hurt it to have it compiled with that flag. It's unnecessary, and is actually a

[CMake] -fPIC with executables

2009-10-27 Thread James Bigler
I noticed in some commit message to CMake a while ago that -fPIC was removed from executable compilation. Would anyone care to comment on why this is? I must admit I thought it wouldn't hurt it to have it compiled with that flag. Thanks, James ___ Powe

Re: [CMake] target DEPENDS are ignored if the target is also used for the COMMAND

2009-10-27 Thread Brad King
Alan W. Irwin wrote: > cmake version 2.6-patch 4; > > Unix Makefiles; > > Linux (Debian stable with bootstrap build of CMake-2.6.4); > > What's the easiest way to try the "generator" test here (for Unix > Makefiles) > so we are doing exactly the same test? Get a CMake 2.6 source tree. Then run

Re: [CMake] Why drop -D from wxWidgets_DEFINITIONS ?

2009-10-27 Thread Orion Poplawski
On 10/26/2009 12:44 PM, Orion Poplawski wrote: in 2.8.0, FindwxWidgets.cmake strips -D from wxWidgets_DEFINITIONS. Why? Note that this is breaking previously working builds of plplot because of the missing "-D". I don't see this being done in any other module. -- Orion Poplawski Technical

Re: [CMake] target DEPENDS are ignored if the target is also used for the COMMAND

2009-10-27 Thread Alan W. Irwin
On 2009-10-27 12:03-0400 Brad King wrote: Alan W. Irwin wrote: The following CMake logic fragment illustrates the issue: add_executable(plhershey-unicode-gen ${plhershey-unicode-gen_SRCS}) add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/plhershey-unicode.h COMMAND plhershey-unicode

[CMake] Strange build environments (MSVC and GCC both)

2009-10-27 Thread Dixon, Shane
I'm trying to work with a vendor's strange build environment that uses gnumake and several (very annoying) Makefiles. Part of the problem is that when the environment builds an emulator, it uses the MSVC toolchain. Once you actually build the real module, it uses gcc so that the object can be

Re: [CMake] WIN32 vs WIN64

2009-10-27 Thread James Bigler
find_program doesn't detect the difference between 64 and 32 bit executable, so I need to augment the search paths to avoid looking in 64 bit locations on a 32 bit system. James On Mon, Oct 26, 2009 at 6:55 PM, David Cole wrote: > On Win64, in a 32-bit calling environment, there are two environ

Re: [CMake] target DEPENDS are ignored if the target is also used for the COMMAND

2009-10-27 Thread Brad King
Alan W. Irwin wrote: > The following CMake logic fragment illustrates the issue: > > add_executable(plhershey-unicode-gen ${plhershey-unicode-gen_SRCS}) > > add_custom_command( > OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/plhershey-unicode.h > COMMAND plhershey-unicode-gen > ${CMAKE_SOURCE_DIR}/fon

[CMake] target DEPENDS are ignored if the target is also used for the COMMAND (fwd)

2009-10-27 Thread Alan W. Irwin
I would appreciate comments on this issue from the CMake developers before I file a bug report. Alan __ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with

[CMake] Setting Visual Studio/Xcode variables(macros)

2009-10-27 Thread Steven Wilson
Is it possible to set Visual Studio/Xcode variables from CMake? ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http

[CMake] CPack DragNDrop generator documentation

2009-10-27 Thread Michael Wild
Hi all The CPack DragNDrop generator is completely undocumented. I created http://www.cmake.org/Bug/view.php?id=9782 to report this and attached a patch which adds some documentation for the variables used in the generator. I hope I didn't misunderstand the meaning of the variables. Micha