[CMake] add_dependencies behaviuor

2011-05-18 Thread Andrea Galeazzi
I've multiple executable targets depending on a custom target that invokes another executable target: add_executable(MyTool ${MyTool_SOURCES}) add_custom_target(PreBuildCommands ALL COMMAND java -jar ../BuildNumberUpdater.jar

[CMake] linux cmake with intel compiler

2011-05-18 Thread gekso
Hello! Does anyone know how to use Intel Compiler with cmake on linux (Unix Makefiles)? I've tried to set CC, CXX environment variables before cmake - no effect. Call of intel compiler environment - no effect too.. ___ Powered by www.kitware.com Visit

Re: [CMake] linux cmake with intel compiler

2011-05-18 Thread Eric Noulard
2011/5/18 gekso ev.93...@gmail.com: Hello! Does anyone know how to use Intel Compiler with cmake on linux (Unix Makefiles)? I've tried to set CC, CXX environment variables before cmake - no effect. What do you mean by no-effect ? gcc is found and used? $ source

Re: [CMake] Touching files on cache var changes

2011-05-18 Thread Michael Hertling
On 05/17/2011 07:46 PM, David Cole wrote: On Tue, May 17, 2011 at 1:30 PM, Michael Hertling mhertl...@online.dewrote: On 05/17/2011 05:45 PM, Robert Bielik wrote: Hi all, I'm wondering if there's a way to touch files on cached var changes. Let's say I have an option to enable or disable a

Re: [CMake] linux cmake with intel compiler

2011-05-18 Thread Tim Gallagher
There's two ways we do it. If you are starting with a clean cache (first time you run ccmake), if you do: CC=icc FC=ifort ccmake /path/to/source It will set it up using Intel compilers. We also do: include(CMakeForceCompiler) CMAKE_FORCE_C_COMPILER(icc Intel C Compiler)

[CMake] Setting special visual studio options from CMake

2011-05-18 Thread Gerhard Gappmeier
Hi, for one project I need to set special linker options in Visual Studio. I tried this: SET(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} /BASE:0x6100 /DYNAMICBASE:NO /FIXED) but the generated project now shows my options in the Additional options section, and still shows the

[CMake] CTest error regex bug

2011-05-18 Thread Zach Mullen
Hello, JC and I discovered some weird behavior in CTest where some warnings were being reported as errors in Build.xml. After some digging I found that the output was matching one of the cmCTestErrorMatches, specifically ([^ :]+):([0-9]+): ([^ \\t]). This is occurring on gcc 4.2.1 on a mac.

Re: [CMake] CTest error regex bug

2011-05-18 Thread David Cole
This is just ctest's way of helping you get rid of your warnings. All warnings should be treated as errors... (Just joking, please don't flame... :-) git blame shows that line as having been last modified in 2004. Specifically: git blame -- Source/CTest/cmCTestBuildHandler.cxx 8a2bedda (Ken

Re: [CMake] Setting special visual studio options from CMake

2011-05-18 Thread Tyler
I think CMAKE_SHARED_LINKER_FLAGS is a cache variables, so you need to use the CACHE flag (and probably the FORCE flag) to set(). You can verify this by inspecting ${CMAKE_BINARY_DIR}/CMakeCache.txt. Consult the docs for more details. tyler On Wed, May 18, 2011 at 6:32 AM, Gerhard Gappmeier

Re: [CMake] add_dependencies behaviuor

2011-05-18 Thread Tyler
This looks reasonably correct to me (although PreBuildCommands has no explicit dependency on the MyTool target; I'm not sure if the fact that you're calling MyTool as part of your custom target will cause CMake to create an implicit dependency from PreBuildCommands to MyTool). What is the problem

Re: [CMake] make VERBOSE=1

2011-05-18 Thread Michael Hertling
On 05/17/2011 05:00 PM, gekso wrote: Hi David, try to set ( CMAKE_VERBOSE_MAKEFILE true ) AFAIK, this just means verbose output enabled by default. 2011/5/17 David Aldrich david.aldr...@emea.nec.com: Hi I would like to see the exact g++ commands that are invoked by a makefile generated by

Re: [CMake] add_dependencies behaviuor

2011-05-18 Thread Andrea Galeazzi
ep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake __ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 6132 (20110518) __ Il me

[CMake] cmake package for cygwin

2011-05-18 Thread marco atzeri
Hi Bill, are you planning to release the 2.8.4 package for cygwin ? Thanks in advance Marco ___ 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

[CMake] piping commands to executable

2011-05-18 Thread Yngve Inntjore Levinsen
Dear developers, I have a bit of an issue with ctest. In our project we usually generate a binary which we pipe in scripts with the commands we want to execute (some defined parser language). Now at first I would have liked to do something like ADD_TEST(testsample executable script.txt)

Re: [CMake] cmake package for cygwin

2011-05-18 Thread Bill Hoffman
On 5/18/2011 12:46 PM, marco atzeri wrote: Hi Bill, are you planning to release the 2.8.4 package for cygwin ? Thanks in advance Marco Yes. I will try to get that out this week. Thanks for the reminder... -Bill -- Bill Hoffman Kitware, Inc. 28 Corporate Drive Clifton Park, NY 12065

[CMake] changing C/C++ compiler: from CMakeLists/for some sources only, and more

2011-05-18 Thread Szilárd Páll
Hi, I need to do some funky things to get my code compiled and I'd like to have some opinion on whether these things are possible or not and what's the best way to do it. 1. Change the C/C++ compiler from CMakeList.txt without triggering the re-generation of the entire cache. I know it sounds

[CMake] Multiarch support

2011-05-18 Thread Andreas Heck
Hey guys, does anyone knows if there exists a patched version of 2.8.4 with debians new multiarch support? Ubuntu natty is the first system which uses this kind of structure. My first workaround was to set the include paths for the find modules that belong to my build. Thanks, Andreas

Re: [CMake] Multiarch support

2011-05-18 Thread Eric Noulard
2011/5/18 Andreas Heck andreash...@arcor.de: Hey guys, does anyone knows if there exists a patched version of 2.8.4 with debians new multiarch support? Ubuntu natty is the first system which uses this kind of structure. My first workaround was to set the include paths for the find modules

Re: [CMake] Multiarch support

2011-05-18 Thread Daniel Pfeifer
Am Mittwoch, den 18.05.2011, 23:02 +0200 schrieb Andreas Heck: Hey guys, does anyone knows if there exists a patched version of 2.8.4 with debians new multiarch support? Ubuntu natty is the first system which uses this kind of structure. Hi Andreas, for ubuntu maverick and natty, a

Re: [CMake] BundleUtilities with MinGW under Windows

2011-05-18 Thread Clinton Stimpson
What version of cmake? I don't think that QtTest example worked until CMake 2.8.3. And you have dumpbin available on Windows from a Visual Studio installation? It might be nice to add support for mingw's objdump tool to find dependent dlls. Clint On May 14, 2011, at 7:48 AM, NoRulez wrote:

[CMake] Excluding definitions for source files

2011-05-18 Thread Robert Bielik
Hi, CMake 2.8.4 , MSVC generators: I have a problem where I need to be able to select Unicode build or not, but at the same time 3 files of my project MUST NOT have Unicode enabled. Is there a way to remove compile definitions for certain source files ? TIA /Rob

Re: [CMake] Excluding definitions for source files

2011-05-18 Thread Robert Bielik
Robert Bielik skrev 2011-05-19 07:55: Hi, CMake 2.8.4 , MSVC generators: I have a problem where I need to be able to select Unicode build or not, but at the same time 3 files of my project MUST NOT have Unicode enabled. Is there a way to remove compile definitions for certain source files ?

[Cmake-commits] CMake branch, next, updated. v2.8.4-1563-ga5d8527

2011-05-18 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via a5d8527a445eae00f45ddf9dd2686e331b6795c1 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.4-430-g14abf9f

2011-05-18 Thread KWSys Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via 14abf9f3d8d42701ad2aa43c2835f092b87b7042 (commit) from