[CMake] ctest_update return value is incorrect when update failed

2013-09-11 Thread Fedor Gusev
Hello. In CTest documentation it says that ctest_update returns -1 when update failed: The RETURN_VALUE option specifies a variable in which to store the result, which is the number of files updated or -1 on error. (see http://www.cmake.org/cmake/help/v2.8.11/ctest.html#command:ctest_update) I've

Re: [CMake] Alternate compiler specific options - how to specify?

2013-09-11 Thread Rolf Eike Beer
Miller Henry wrote: > We are using cmake 2.8.11 for out project. > > Our local compiler is gcc-4.4.3. There is desire to use a newer compiler, > but we are not yet ready to commit to anything yet. In the mean time we > have installed binaries gcc-4.7 and gcc-4.8. We can specify the alternate >

Re: [CMake] Alternate compiler specific options - how to specify?

2013-09-11 Thread Игорь Пашев
2013/9/11 Miller Henry : > We are using cmake 2.8.11 for out project. > > Our local compiler is gcc-4.4.3. There is desire to use a newer compiler, > but we are not yet ready to commit to anything yet. In the mean time we > have installed binaries gcc-4.7 and gcc-4.8. We can specify the alternat

Re: [CMake] cmake doc doesn't mention DESTDIR?

2013-09-11 Thread Dan Kegel
I must have been looking at older doc somehow. Next time I'll include a link to make my mistake even more obvious. On Wed, Sep 11, 2013 at 4:37 PM, David Cole wrote: > It's documented along with the CMAKE_INSTALL_PREFIX variable -- since 2.8.10 > according to the bug resolution. > > > http://cma

Re: [CMake] cmake doc doesn't mention DESTDIR?

2013-09-11 Thread David Cole
It's documented along with the CMAKE_INSTALL_PREFIX variable -- since 2.8.10 according to the bug resolution. http://cmake.org/cmake/help/v2.8.11/cmake.html#variable:CMAKE_INSTALL_PREFIX If there's a better place for it, perhaps re-open the bug with additional suggestion. There are plent

Re: [CMake] rpath trouble on macosx: cmake 2.8.9 ignores INSTALL_NAME_DIR and INSTALL_RPATH?

2013-09-11 Thread Alexander Neundorf
On Wednesday 11 September 2013, Clinton Stimpson wrote: > On Tuesday, September 10, 2013 04:03:08 PM Dan Kegel wrote: > > On Tue, Sep 10, 2013 at 10:43 AM, Clinton Stimpson > > wrote: > > > Using the INSTALL_RPATH property doesn't work correctly unless you use > > > CMake 2.8.12 with the target p

[CMake] cmake should try harder to abort on invalid input

2013-09-11 Thread Dan Kegel
I was mystified by the following problem: add_executable(x x.c) add_custom_command( TARGET x POST_BUILD command sh ${CMAKE_SOURCE_DIR}/frob.sh x ) Making this project didn't execute frob.sh. Turns out cmake 2.8.9 silently ignores the command because... it's lowercase. Writing COMMAND in

[CMake] cmake doc doesn't mention DESTDIR?

2013-09-11 Thread Dan Kegel
I was going to write a big post about how cmake doesn't support DESTDIR ( http://www.gnu.org/prep/standards/html_node/DESTDIR.html ), but then I double checked, and it's even in the FAQ: http://www.cmake.org/Wiki/CMake_FAQ#Does_CMake.27s_.22make_install.22_support_DESTDIR.3F Why had I never notice

[CMake] How to change intermediate directory?

2013-09-11 Thread Robert Dailey
Currently all intermediate files are placed relative to the location of that VCPROJ file (when generating visual studio projects through CMake). I'd like to structure them like so: ${CMAKE_BINARY_DIR}/output/obj// For example, I can set CMAKE_RUNTIME_OUTPUT_DIRECTORY like this: set( CMAKE_RUNTI

[CMake] Alternate compiler specific options - how to specify?

2013-09-11 Thread Miller Henry
We are using cmake 2.8.11 for out project. Our local compiler is gcc-4.4.3. There is desire to use a newer compiler, but we are not yet ready to commit to anything yet. In the mean time we have installed binaries gcc-4.7 and gcc-4.8. We can specify the alternate compiler with -DCMAKE_C_COMPI

Re: [CMake] CMake and Dia , colorize cmake graphviz output

2013-09-11 Thread Alexander Neundorf
On Wednesday 11 September 2013, Sankar P wrote: > Hi, > > Two questions. > > I found the `cmake --graphviz=.out ` to be extremely useful. > However, is it possible to generate a .dia file instead of a .out file > ? I see that graphviz has removed support for .dia export and that is > probably the

Re: [CMake] CMake and Dia , colorize cmake graphviz output

2013-09-11 Thread Alexander Neundorf
On Wednesday 11 September 2013, Sankar P wrote: > Hi, > > Two questions. > > I found the `cmake --graphviz=.out ` to be extremely useful. > However, is it possible to generate a .dia file instead of a .out file > ? I see that graphviz has removed support for .dia export and that is > probably the

Re: [CMake] Standard template for building and installing a library

2013-09-11 Thread Matthew Woehlke
On 2013-09-10 19:12, Littlefield, Tyler wrote: On 9/10/2013 6:43 PM, Matthew Woehlke wrote: On 2013-09-10 17:38, Littlefield, Tyler wrote: My final question is how to make the debug/release build work, as well as to allow to let this install. I need to install libxlog.a and the include director

Re: [CMake] Building cmake-gui on windoze from scratch...

2013-09-11 Thread Brad King
On 09/10/2013 08:33 PM, Dick Munroe wrote: > It appears to work. Great, thanks for reporting back. -Brad -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community.

[CMake] CMake and Dia , colorize cmake graphviz output

2013-09-11 Thread Sankar P
Hi, Two questions. I found the `cmake --graphviz=.out ` to be extremely useful. However, is it possible to generate a .dia file instead of a .out file ? I see that graphviz has removed support for .dia export and that is probably the reason why this is not working. But is there any other way to g