[CMake] Wrong cl.exe getting picked up

2012-03-14 Thread James Bigler
I have a system with several copies of Visual Studio installed. When I set the generator for "Visual Studio 9 2008" it ends up picking up a different compiler: CMAKE_C_COMPILER:FILEPATH=C:/Program Files (x86)/SCE/Common/VSI/bin/cl.exe I think this is because of the following code in CMakeDetermi

Re: [CMake] Ninja + CMake on a dashboard?

2012-03-14 Thread Marcus D. Hanwell
On Fri, Mar 9, 2012 at 12:34 PM, Bill Hoffman wrote: > On 3/9/2012 12:21 PM, Steven Wilson wrote: >> >> Where does the Ninja generator currently live?   Ie which branch in the >> sources, etc?   I am keen to see support for the Ninja generator on >> Mac/Linux/Windows and would not mind working on

Re: [CMake] Passing extra parameters to CTest from a RUN_TESTS visual studio project

2012-03-14 Thread David Cole
Nothing's changed w.r.t. running ctest via the RUN_TESTS project. You could always add your own custom target if you want to run ctest with additional arguments. HTH, David On Wed, Mar 14, 2012 at 3:18 PM, Massaro Alessio wrote: > Hi there > > > > This has been asked before in 2010, but I tho

[CMake] Passing extra parameters to CTest from a RUN_TESTS visual studio project

2012-03-14 Thread Massaro Alessio
Hi there This has been asked before in 2010, but I thought I might check if anything has changed in CMake v2.8.7. Is it possible to specify extra flags for CTest when it's invoked by the post-build script in a Visual Studio RUN_TESTS project? Adding the following to my main CMakeLists.txt, mai

[CMake] Trying to build Paraview for Visual Studio Express 2010

2012-03-14 Thread Francisco Caraballo
Hello everyone. I'm using CMAKE to build Paraview with Visual Studio Express 2010. I'm having a problem with the generated solution. The problem is that one of the entries generated for included libraries (the MPI libraries) should be semi colon separated but it is space separated. The result of t

[CMake] how add library?

2012-03-14 Thread Quân Phạm Minh
I want add library (header file + dll file) to my project. How do I do in 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://www.cmake.org/Wiki/CMake

[CMake] [PATCH] Correctly generate depfiles when some pre-processor (like distcc or ccache) is used

2012-03-14 Thread Alexander Usov
In pre-processing mode GCC doesn't have target filename and has to guess target name for depfile. Use -MT to force correct target name. gcc -c -MMD -o foo.cc.o foo.cc => foo.cc.o: gcc -E -MMD -o foo.i foo.cc => foo.o: gcc -E -MMD -MT foo.cc.o -o foo.i foo.cc => foo.cc.o: -

Re: [CMake] Ninja generator bug

2012-03-14 Thread Nicolas Desprès
On Wed, Mar 14, 2012 at 11:38 AM, Alexander Usov wrote: > Hi, > > I'm testing CMake's Ninja generator for our project and have found a bug in > it. > The fix is pretty trivial -- just 2-line change. You can just attach it to your email if it is short. Use git-format-patch(1). Or you can use gith

[CMake] Ninja generator bug

2012-03-14 Thread Alexander Usov
Hi, I'm testing CMake's Ninja generator for our project and have found a bug in it. The fix is pretty trivial -- just 2-line change. What is the correct procedure for submitting it? I have looked at the bug tracker, but it seems to only list released versions of cmake. -- Best regards,   Alexan

[CMake] Linking to binary library with a relative path

2012-03-14 Thread GOO Creations
Hi all, I have a small problem linking a external library to my project. Here is an indication of my directory structure. root (dir) |- external (dir) |- external.so (shared library) |- mylibs (dir) |- |- myprog (executable) In the directory "mylibs" all my source code is locat

[CMake] add dll and header to project?

2012-03-14 Thread Quân Phạm Minh
project A depend project B. B is library. I want provide project A header files of project B and dll files in debug and release mode library of project B. How I do in cmake? add_definitions("-DQDisplay_export=__declspec(dllimport)") link_directories(${CMAKE_SOURCE_DIR}/display/build2008/debug) incl

Re: [CMake] how to determine debug or release mode?

2012-03-14 Thread Rolf Eike Beer
Please keep the list in the replies so other people may answer. > actually, I want build my library in debug and release mode with name in > debug is mylibd.dll and release mode is mylib.dll. can you help me? set_target_properties(mylib PROPERTIES DEBUG_POSTFIX "d") Eike -- Powered by www.kitwa

Re: [CMake] how to determine debug or release mode?

2012-03-14 Thread Rolf Eike Beer
> how determine build type in cmake like > if (CMAKE_BUILD_TYPE EQUAL "DEBUG") > message("debug mode") > endif (CMAKE_BUILD_TYPE EQUAL "DEBUG") if (CMAKE_BUILD_TYPE STREQUAL "Debug") -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/

Re: [CMake] how to determine debug or release mode?

2012-03-14 Thread Dirk vanMeeuwen
IF(CMAKE_BUILD_TYPE MATCHES DEBUG) message("debug mode") ENDIF(CMAKE_BUILD_TYPE MATCHES DEBUG) Kind regards, Dirk van Meeuwen, Process Modeling Engineer Technip Benelux B.V. Boerhaavelaan 31, PO Box 86 2700 AB Zoetermeer direct dial: +31 (0)79 3293 843 direct fax : +31 (0)79 3293 700 direc

[CMake] how to determine debug or release mode?

2012-03-14 Thread Quân Phạm Minh
how determine build type in cmake like if (CMAKE_BUILD_TYPE EQUAL "DEBUG") message("debug mode") endif (CMAKE_BUILD_TYPE EQUAL "DEBUG") -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic a