Re: [CMake] Is the situation with CMake + Eclipse ever going to get any better?

2015-09-29 Thread Roland Schulz
Hi, also Doug, the CDT co-lead, is working on an integration of cmake into cdt. You can find information in the archive of cdt-...@eclipse.org. I think you can expect well integration, similar to clion or qt-developer, with the next major release next year. Roland On Mon, Sep 28, 2015 at 11:00 A

[CMake] check_library_exists, built-in, and -Werror

2015-06-17 Thread Roland Schulz
Hi, When using CFLAGS=-Werror $ check_library_exists(m sqrt "" HAVE_LIBM) fails to give the correct result. A very similar issue has been reported before for CHECK_FUNCTION_EXISTS http://www.cmake.org/Bug/view.php?id=8246 There the recommendation was to use CHECK_SYMBOL_EXISTS instead. My quest

[CMake] Windows rpath emulation

2014-09-20 Thread Roland Schulz
Hi, it would be nice if there were a way to emulate rpath under Windows. As far as I can see there are two possible approaches: - Generate a shell script which sets PATH - Generate a manifest for the application and a manifest for the dependencies. http://sourceforge.net/p/mingw-w64/mailman/messag

[CMake] Eclipse/CMake build configurations

2013-03-13 Thread Roland Schulz
Hi, why does the Eclipse project generated by cmake not have any cdt build configurations? I.e. it is missing the "C/C++ Build" tab in the project properties. I'm asking because if it had build configurations that might make it possible to do the following: - Create a project in eclipse - Create

Re: [CMake] Set C compiler flags but not linker flags

2012-07-28 Thread Roland Schulz
Hi, I found a solution and thus answer to myself in case other (will) have a similar issue. For shared libraries CMAKE_C_CREATE_SHARED_LIBRARY_FORBIDDEN_FLAGS exists but no equivalent option for executables is available. Instead one is required to use set_target_properties(COMPILE_FLAGS "...") to

[CMake] Set C compiler flags but not linker flags

2012-07-12 Thread Roland Schulz
Hi, if I set compiler flags using CMAKE_C_FLAGS these flags are also added to the linker flags for C executables and libraries. How can I set compiler flags without those same flags also appended to the linker flags? In this specific case I would like to add "-fopenmp" to the compiler but do not

[CMake] NSIS invalid temporary directory

2012-07-07 Thread Roland Schulz
Hi, trying to create a NSIS package I get: CPack Error: Problem creating temporary directory: D:/rschulz/gromacs/msvc2010/_CPack_Packages/win64/NSIS/Gromacs-4.6-dev-win64/C:/Program Files/Gromacs This is with set(CPACK_SET_DESTDIR "ON") with both cmake 2.8.7 and 2.8.8 What does one need to do to

[CMake] NMake + Compiler wrapper

2012-06-18 Thread Roland Schulz
Hi, should it work to use the NMake generator with a compiler wrapper like mpicc? If I try to use the mpicc from OpenMPI 1.6 it doesn't work (see below for messages). This is with cmake 2.8.8 and both with standard nmake and nmake-jom. It works fine without the wrapper and it also works find to co

Re: [CMake] CTest MemCheck analysis/visualization

2012-03-16 Thread Roland Schulz
Hi, we use XSLT to convert the XML output from valgrind: https://github.com/jesper/hudson-hacks/blob/master/ctest_valgrind_to_junit.xsl. We don't use the cmake memcheck output, because there was a bug in cmake at the time - fixed since - missing a class of valgrind errors. So we thought it is safe

[CMake] ICC + Windows

2012-02-01 Thread Roland Schulz
Hi, what is the recommended Generator to compile on Windows with ICC on the shell? If I try to use the Visual Studio 2010 (or 2008) generator and then use msbuild (/ devenv) to compile, it uses MSVC as compiler. This is even though I have selected icl (CC=icl) and cmake had detected that the comp

[CMake] Different memcheck options for different tests

2011-12-16 Thread Roland Schulz
Hi, how can I specify different memcheck options (e.g. CTEST_MEMORYCHECK_COMMAND_OPTIONS) for different tests. Ideally I would like to be able to specify it depending on the test label or the directory. Ideally I could run "ctest -D ExperimentalMemCheck" and each test would be run with the respec