[CMake] CMAKE_ROOT env variable not honored anymore

2014-11-07 Thread Martin Apel
Hi all, we used CMake 2.8 so far and had used the environment variable CMAKE_ROOT to tell the cmake binary, where to find its Modules etc. directories. We used this in a multiplatform context to store the architecture-independent files of CMake only once. It seems, that CMake 3.0 does not

[CMake] Generating multiple targets in parallel generates common prerequisites twice

2014-01-08 Thread Martin Apel
Hi all, I hope this question hasn't been asked before, I haven't found anything useful in the archive. Assume I have the following small CMakeLists.txt file: CMAKE_MINIMUM_REQUIRED (VERSION 2.8) PROJECT(testCMakeDeps) ADD_LIBRARY(foo SHARED foo.cpp) ADD_LIBRARY(bar SHARED bar.cpp)

Re: [CMake] Generating multiple targets in parallel generates common prerequisites twice

2014-01-08 Thread Martin Apel
Hi Eike, thanks for the pointer. I verified, that it works with the current git version of cmake. So the problem will be fixed with the next CMake release. Martin On 08/01/14 10:00, Rolf Eike Beer wrote: Am 08.01.2014 09:42, schrieb Martin Apel: Hi all, I hope this question hasn't been

[CMake] LLVM Dragonegg usage in CMakeLists.txt

2012-04-25 Thread Martin Apel
I am trying to use the LLVM dragonegg plugin for GCC in a project, which is built using CMake. However I have a hard time figuring out how to tell CMake, what it should do. Dragonegg is a plugin, which makes GCC use part of the LLVM infrastructure to optimize the compiled code. In my case, I am

Re: [CMake] Bug fix requests for the *next* release of CMake...

2011-03-31 Thread Martin Apel
On 29/03/11 19:56, David Cole wrote: Now that we have released CMake 2.8.4, *now* would be a great time to prioritize bug fixes for the next release of CMake. http://public.kitware.com/Bug/view.php?id=11942 This currently keeps us from upgrading to 2.8.3 or 2.8.4. Thanks, Martin

Re: [CMake] Build on one machine, test on multiple

2010-06-02 Thread Martin Apel
the tests and submit the results to CDash. The only requirement for the test machines is to have standard software installed, we need perl and python for our tests. Hope this helps, Martin On 05/30/10 14:17, Alexander Neundorf wrote: On Friday 28 May 2010, Martin Apel wrote: Hi Karthik, I

Re: [CMake] Build on one machine, test on multiple

2010-05-28 Thread Martin Apel
busy. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 -- Martin Apel Software Architect Phone: + 49 8105 77266-53 E-Mail: martin.a...@simpack.de SIMPACK AG

[CMake] Build on one machine, test on multiple

2010-05-27 Thread Martin Apel
Hi all, we have currently set up a nightly build process, which builds and tests our software via CMake / CTest and submits results to CDash. However I would like run some tests on multiple machines with different OS versions (Windows XP, Vista, Windows 7) for a build, which has been created

Re: [CMake] CTest ignoring custom set variables

2009-12-11 Thread Martin Apel
David Cole wrote: On Fri, Dec 11, 2009 at 3:58 AM, Martin Apel martin.a...@simpack.de mailto:martin.a...@simpack.de wrote: Hi all, I tried to set some CTest custom variables such as CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE in the CTestCustom.cmake file in the binary

Re: [CMake] Bug in Cmake --system-information

2009-10-15 Thread Martin Apel
Dixon, Shane wrote: I'm running Cmake 2.8.0-rc3. Running cmake --system-information doesn't dump anything, but tries to build in the current directory. This seems like a bug. If anyone else can confirm this, I'll open a bug report for it. -- Shane Dixon Linux Engineer Atmel

Re: [CMake] CMAKE_SYSTEM not available

2009-10-08 Thread Martin Apel
Philip Lowman wrote: On Wed, Sep 30, 2009 at 5:24 AM, Martin Apel martin.a...@simpack.de mailto:martin.a...@simpack.de wrote: I had a similar issue with CMAKE_SYSTEM_NAME. I have put platform specific default settings into files called Linux.cmake and Windows.cmake, where

Re: [CMake] CMAKE_SYSTEM not available

2009-09-30 Thread Martin Apel
I had a similar issue with CMAKE_SYSTEM_NAME. I have put platform specific default settings into files called Linux.cmake and Windows.cmake, where the file is included as INCLUDE (${CMAKE_SYSTEM_NAME}.cmake) However it's not possible to initialize some variables, because this include statement

Re: [CMake] CMake 2.8.0 RC 1 ready for testing!

2009-09-29 Thread Martin Apel
Hi Brad, Brad King wrote: Hi Martin, Thanks for trying the release candidate. It is helpful to get feedback early in the release process. Martin Apel wrote: However I found a few quirks in the first rc: 1. I have quite a lot of Fortran files in one of our projects. We use the Intel

Re: [CMake] CMake 2.8.0 RC 1 ready for testing!

2009-09-28 Thread Martin Apel
Hi all, thanks for your efforts to improve CMake. Especially the support to run tests in parallel is really great! However I found a few quirks in the first rc: 1. I have quite a lot of Fortran files in one of our projects. We use the Intel Fortran 11 compiler to compile these. When gathering

[CMake] Strange problem with build running twice from ctest script on Windows

2009-08-24 Thread Martin Apel
Hi all, I am experiencing a very strange problem with a build run via a ctest script on Windows. The script looks as follows: SET (CTEST_SOURCE_DIRECTORY C:/s_9XXX_build-windows-32/develop) SET (CTEST_PROJECT_NAME Spck NA) SITE_NAME(CTEST_SITE) SET(CTEST_BUILD_NAME win32-plain-Experimental) SET

Re: [CMake] Setting up a PGO sequence

2009-08-06 Thread Martin Apel
Hi, I think you should be able to do something like the following: set(CMAKE_C_FLAGS PGO_TRAINING_OPTIONS ${CMAKE_C_FLAGS}) # For CXX probably as well ctest_configure(BUILD ${CTEST_BINARY_DIRECTORY} ) ctest_build(BUILD ${CTEST_BINARY_DIRECTORY} ) ctest_test(BUILD ${CTEST_BINARY_DIRECTORY} )

Re: [CMake] visual studio parallel build

2009-07-31 Thread Martin Apel
j s wrote: I don't think so, but this article claims that by specifying multiple c++ files at the same time, the Visual C++ compiler will parallelize them: http://stackoverflow.com/questions/601970/how-do-i-utilise-all-the-cores-for-nmake

[CMake] Setting up weekly tests using ctest

2009-07-10 Thread Martin Apel
Hi there, I am currently running nightly builds and accompanying tests using CMake and CDash. However, our software is rather computationally expensive, so we'd like to perform more extensive tests every weekend, because one night is too short for these. I only found documentation on setting up

Re: [CMake] [Cdash] Setting up weekly tests using ctest

2009-07-10 Thread Martin Apel
check out the rest of the Windows Live™. More than mail–Windows Live™ goes way beyond your inbox. More than messages avk-blocked://www.microsoft.com/windows/windowslive/ -- Martin Apel Tel

Re: [CMake] [Cdash] Setting up weekly tests using ctest

2009-07-10 Thread Martin Apel
assign those build names from those sites to the Weekly group. Let me know if you need more info : it should be really straightforward if you are the CDash project administrator. HTH, David On Fri, Jul 10, 2009 at 5:05 AM, Martin Apel martin.a...@simpack.de mailto:martin.a...@simpack.de

Re: [CMake] problem : cmake 2.6.4 intel fortran compiler 11 - visstudio 2008

2009-07-03 Thread Martin Apel
Hi John, the same problem has bitten me as well, now in a case, where I cannot simply uninstall one of both compiler versions. I analyzed the situation a bit, and I am not sure, if either CMake or Visual Studio is the culprit here. During try_compile for checking the Fortran compiler, CMake

Re: [CMake] problem : cmake 2.6.4 intel fortran compiler 11 - visstudio 2008

2009-06-26 Thread Martin Apel
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_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake . -- Martin Apel

Re: [CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-04-29 Thread Martin Apel
distribution. Best Regards, Martin James Bigler wrote: On Tue, Apr 28, 2009 at 8:21 AM, Martin Apel martin.a...@simpack.de mailto:martin.a...@simpack.de wrote: Bill Hoffman wrote: Martin Apel wrote: Hi all, Inspired by the Emacs command cperl-perldoc-at-point I wrote a little command

[CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-04-28 Thread Martin Apel
Hi all, Inspired by the Emacs command cperl-perldoc-at-point I wrote a little command to show the CMake documentation of the command on which the cursor is currently positioned. It will open another buffer and show the documentation generated from cmake --help-command command in that buffer. I

Re: [CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-04-28 Thread Martin Apel
Bill Hoffman wrote: Martin Apel wrote: Hi all, Inspired by the Emacs command cperl-perldoc-at-point I wrote a little command to show the CMake documentation of the command on which the cursor is currently positioned. It will open another buffer and show the documentation generated from

Re: [CMake] Analyze file dependencies in Visual Studio for projectgeneratedbyCMake

2009-04-24 Thread Martin Apel
Alexander Neundorf wrote: On Thursday 23 April 2009, Martin Apel wrote: Alexander Neundorf wrote: On Wednesday 22 April 2009, Martin Apel wrote: Hi all, I am currently fighting with Visual Studio regenerating a CMake-generated project on every build, although nothing has

Re: [CMake] Analyze file dependencies in Visual Studio for projectgeneratedby CMake

2009-04-23 Thread Martin Apel
Alexander Neundorf wrote: On Wednesday 22 April 2009, Martin Apel wrote: Hi all, I am currently fighting with Visual Studio regenerating a CMake-generated project on every build, although nothing has changed. I am searching for a method how to debug the generated dependencies inside VS

[CMake] Analyze file dependencies in Visual Studio for project generatedby CMake

2009-04-22 Thread Martin Apel
Hi all, I am currently fighting with Visual Studio regenerating a CMake-generated project on every build, although nothing has changed. I am searching for a method how to debug the generated dependencies inside VS. The project builds a DLL from Fortran files, which are generated by a Perl script.

Re: [CMake] fortran flags in a c++ linked executable

2009-04-01 Thread Martin Apel
James C. Sutherland wrote: Let me try this again. I have a f90 subroutine that performs file IO. I would like to link that with a C++ driver. If I use a fortran driver, I am able to set the binary format via set( CMAKE_Fortran_FLAGS -fconvert=big-endian ) This results in file IO

Re: [CMake] How to surround an imported lib with extra flags onlink?

2009-03-31 Thread Martin Apel
Hi Alexandre, I don't think that CMake is able to handle this. I searched for a solution to a similar problem involving the use of the --start-group and --end-group option for ld on Linux. You might be able to define custom rules for this, but then you are definitely on platform-dependent ground.

Re: [CMake] Interpretation of RUNTIME_OUTPUT_DIRECTORY in VisualStudio

2009-03-17 Thread Martin Apel
mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio On Mar 17, 2009, at 8:40 AM, Martin Apel wrote: Hi all, I am trying to write CMake rules to copy shared libraries / DLLs to the runtime directory

Re: [CMake] CDash and submiting aditional information

2009-03-11 Thread Martin Apel
Hi Martin, I am using Dart still, not CDash. But anyway, this is mainly a CTest configuration issue. Here is what I do: I have a CTest script which contains the following line: SET (CTEST_NOTES_FILES ${CTEST_BINARY_DIRECTORY}/SVNVersionInfo.txt) This file is generated to contain the Subversion

Re: [CMake] Installing shared libs with symlinks

2009-01-12 Thread Martin Apel
Philip Lowman wrote: On Fri, Dec 12, 2008 at 9:34 AM, Martin Apel martin.a...@simpack.de mailto:martin.a...@simpack.de wrote: Philip Lowman wrote: On Wed, Dec 10, 2008 at 4:04 AM, Martin Apel martin.a...@simpack.de mailto:martin.a...@simpack.de mailto:martin.a

[CMake] Problem with Fortran module enclosed in #ifdef

2009-01-09 Thread Martin Apel
Hi all, I am experiencing a problem with one Fortran source file containing a module definition. Unfortunately the whole source file is enclosed in '#ifdef WINDOWS'. On Linux this causes the build process to fail, because cmake wants to copy a generated .mod file, which does not exist. The file

Re: [CMake] Problem with Fortran module enclosed in #ifdef

2009-01-09 Thread Martin Apel
Michael Wild wrote: On 9. Jan, 2009, at 9:27, Martin Apel wrote: Hi all, I am experiencing a problem with one Fortran source file containing a module definition. Unfortunately the whole source file is enclosed in '#ifdef WINDOWS'. On Linux this causes the build process to fail, because

Re: [CMake] Problem with Fortran module enclosed in #ifdef

2009-01-09 Thread Martin Apel
Arjen Markus wrote: You are right, that this is uncommon. But I'm trying to replace an existing build system for some thousands of files, which preprocesses all Fortran files, even those with .f suffix. Unfortunately this is something I can't change. I could use the approach you suggest, but

Re: [CMake] Problem with Fortran module enclosed in #ifdef

2009-01-09 Thread Martin Apel
Michael Wild wrote: On 9. Jan, 2009, at 10:26, Martin Apel wrote: Michael Wild wrote: On 9. Jan, 2009, at 9:27, Martin Apel wrote: Hi all, I am experiencing a problem with one Fortran source file containing a module definition. Unfortunately the whole source file

Re: [CMake] Passing -j (or other make flags) to make?

2008-12-17 Thread Martin Apel
Tyler Roscoe wrote: Is there a way to set flags for make from my CMakeLists.txt? Specifically, I have a cluster of build machines and I would like each of them to use a specific -j flag. (I would set the -j flag in a global cmake file where I set up things like project-wide -D flags and

Re: [CMake] add_custom_target always runs?

2008-12-16 Thread Martin Apel
Tyler Roscoe wrote: On Tue, Dec 16, 2008 at 09:44:38PM +0100, Eric NOULARD wrote: Ok, so is it simply impossible to do delta builds if my build process needs add_custom_command/add_custom_target invocations? Is there some better way to have CMake create the headers for me? Does this

[CMake] Installing shared libs with symlinks

2008-12-10 Thread Martin Apel
Hi there, I am trying to install the boost libraries my software needs into the target installation directory as follows: Find_Package(Boost 1.34.1 COMPONENTS filesystem system signals program_options REQUIRED) FOREACH (Lib ${Boost_FILESYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY}

[CMake] Win: Dependency for def file missing

2008-12-09 Thread Martin Apel
Hi all, I am generating a DLL under Windows using a def file. The def file itself is generated. It seems that CMake (2.6.3rc5) does not generate a dependency between the generated def file and the DLL. When I change the input, from which the def file is generated, the def file is rebuilt, but not

Re: [CMake] Win: Dependency for def file missing

2008-12-09 Thread Martin Apel
Bill Hoffman wrote: Martin Apel wrote: Hi all, I am generating a DLL under Windows using a def file. The def file itself is generated. It seems that CMake (2.6.3rc5) does not generate a dependency between the generated def file and the DLL. When I change the input, from which the def file

Re: [CMake] making Nightly builds easier to setup

2008-11-13 Thread Martin Apel
Alexander Neundorf wrote: On Monday 10 November 2008, Martin Apel wrote: ... I recently played around with nightly builds as well. I used to have a setup for experimental builds, but never could get the svn checkout to run. With the approach described above, I was finally able to run

Re: [CMake] making Nightly builds easier to setup

2008-11-11 Thread Martin Apel
On Mon, Nov 10, 2008 at 5:33 AM, Martin Apel [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Eric Noulard wrote: 2008/11/9 Alexander Neundorf [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: [...] commands can be executed. IMO this can make setting up

Re: [CMake] making Nightly builds easier to setup

2008-11-10 Thread Martin Apel
Eric Noulard wrote: 2008/11/9 Alexander Neundorf [EMAIL PROTECTED]: [...] commands can be executed. IMO this can make setting up Nightly builds much easier. Looks interesting, I didn't ever thought ctest scripting was done for that. I did shell scripts for that and was wondering

Re: [CMake] FindBoost and gcc 4.3.2

2008-10-24 Thread Martin Apel
Olivier Tournaire wrote: Hi all, I use boost in one of my project. However, cmake (2.6.2) does not seem to be able to find the libs. With the previous version of gcc (4.2.4), I did not have any problem. Here is what is in my CMakeLists.txt : # Find BOOST # SET( BOOST_LIBRARYDIR

Re: [CMake] Command line too long under Windows

2008-10-16 Thread Martin Apel
Brad King wrote: Brad King wrote: CMake once just listed the object files on the command line in the makefile, but users hit command line length limits with several hundred object files. We solved the problem by listing the objects in a response file. Now it looks like you've hit

[CMake] Command line too long under Windows

2008-10-15 Thread Martin Apel
Hi all, I am currently in the process of trying to convert the build system of our software to CMake. Unfortunately there is one static library consisting of lots of objects (about 5700), which has lots of cyclic references, so I cannot easily split it up. I can generate this large library on

Re: [CMake] Output of ADD_CUSTOM_COMMAND generated multiple times

2008-10-08 Thread Martin Apel
Alan W. Irwin wrote: On 2008-10-07 16:09-0400 Brad King wrote: Now targets b and c and build in parallel, but neither will build until 'a' is generated. Thanks, Brad, for your further explanation and example. My method (which I started to use as a result of misinterpreting something you

Re: [CMake] Output of ADD_CUSTOM_COMMAND generated multiple times

2008-10-08 Thread Martin Apel
Brad King wrote: We've built huge projects with thousands of custom build rules while still only having a few custom targets. Your original example can be written like this: ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_BINARY_DIR}/a COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_BINARY_DIR}/a )

[CMake] Output of ADD_CUSTOM_COMMAND generated multiple times

2008-10-07 Thread Martin Apel
Hi all, I'm experiencing the following problem with ADD_CUSTOM_COMMAND: The commands defined for it are executed multiple times, if multiple targets depend on it and I run a parallel make afterwards. An example makes this easier to understand: PROJECT(Test) cmake_minimum_required(VERSION 2.6)

[CMake] Problem with set_target_properties on mixed-source library

2008-09-29 Thread Martin Apel
Hi all, I have a library consisting of multiple sources from Fortran and C, e.g. file1.f, file2.f, file3.c. I want to generate this library in two different versions, where in one of those versions the Fortran files are compiled with different options, in my case with -ipo. That means:

Re: [CMake] Problem with set_target_properties on mixed-source library

2008-09-29 Thread Martin Apel
Alan W. Irwin wrote: On 2008-09-29 16:00+0200 Martin Apel wrote: Hi all, I have a library consisting of multiple sources from Fortran and C, e.g. file1.f, file2.f, file3.c. I want to generate this library in two different versions, where in one of those versions the Fortran files

Re: [CMake] Override of link flag for one specific shared library

2008-09-12 Thread Martin Apel
, Martin Apel [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I am using ADD_SUBDIRECTORY. I did'nt know, that anything like SUBDIRS exists and haven't found anything in the documentation about it. Martin David Cole wrote: Are you using SUBDIRS or ADD_SUBDIRECTORY

Re: [CMake] Override of link flag for one specific shared library

2008-09-08 Thread Martin Apel
I am using ADD_SUBDIRECTORY. I did'nt know, that anything like SUBDIRS exists and haven't found anything in the documentation about it. Martin David Cole wrote: Are you using SUBDIRS or ADD_SUBDIRECTORY in your project...? On Thu, Sep 4, 2008 at 2:42 AM, Martin Apel [EMAIL PROTECTED

Re: [CMake] Override of link flag for one specific shared library

2008-09-04 Thread Martin Apel
of it in the sub-CMakeLists.txt...? On Wed, Sep 3, 2008 at 10:41 AM, Martin Apel [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I have defined the following in a top-level CMakeLists.txt: SET (CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} -Wl,--unresolved

[CMake] Override of link flag for one specific shared library

2008-09-03 Thread Martin Apel
Hi, I have defined the following in a top-level CMakeLists.txt: SET (CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} -Wl,--unresolved-symbols=ignore-in-shared-libs) Now I'd like to reset this for one specific library in a subdirectory (in a separate CMakeLists.txt added with

Re: [CMake] Recoverable build errors?

2008-09-02 Thread Martin Apel
Convey, Christian J CIV NUWC NWPT wrote: I've got a top-level CMake project with numerous executable and library sub-projects. I'd like to have CMake generate Makefiles such that if one of those subprojects fails the build process, the Makefile still attempts to build all other subprojects

Re: [CMake] detection of min version in findBoost

2008-07-18 Thread Martin Apel
Hi all, if I remember right, FindBoost currently ignores the minimum version given. I had a similar problem myself and fell into the same trap. Regards, Martin nilitonilito nilitonilito wrote: Hi there, I'm trying to detect libboost in my CMake root script, it works except for min

Re: [CMake] WORKING_DIRECTORY ignored for ADD_CUSTOM_COMMAND on VisualStudio?

2008-06-27 Thread Martin Apel
Bill Hoffman wrote: Martin Apel wrote: Hi Brad, this is kind of difficult under Windows, as far as I know. I have MSys installed on my machine, but the pwd command is not really a command (i.e. .exe) under MSys, but a shell script, which invokes the shell command pwd. Windows sees the file

Re: [CMake] WORKING_DIRECTORY ignored for ADD_CUSTOM_COMMAND on VisualStudio?

2008-06-27 Thread Martin Apel
Bill Hoffman wrote: Martin Apel wrote: Bill Hoffman wrote: Martin Apel wrote: Hi Brad, this is kind of difficult under Windows, as far as I know. I have MSys installed on my machine, but the pwd command is not really a command (i.e. .exe) under MSys, but a shell script, which invokes

Re: [CMake] WORKING_DIRECTORY ignored for ADD_CUSTOM_COMMAND on VisualStudio?

2008-06-27 Thread Martin Apel
output at all, it's just a no-op... cd without any arguments prints the current working directory just like pwd... On Fri, Jun 27, 2008 at 9:20 AM, Bill Hoffman [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Martin Apel wrote: Bill Hoffman wrote: Martin Apel

Re: [CMake] WORKING_DIRECTORY ignored for ADD_CUSTOM_COMMAND on VisualStudio?

2008-06-27 Thread Martin Apel
Bill Hoffman wrote: Martin Apel wrote: This is it! It seems to work correctly, when using cd instead of cd .. It seems I misinterpreted a command line parameter of a linker call as the directory output. Sorry for the confusion. I'm not exactly in love with Windows ;-) OK

[CMake] WORKING_DIRECTORY ignored for ADD_CUSTOM_COMMAND on Visual Studio?

2008-06-26 Thread Martin Apel
Hi all, I got the impression, that the CMake generator for Visual Studio 7 ignores the working directory set in ADD_CUSTOM_COMMAND. Is this a bug or is this a documented feature somehow? Or am I simply doing something wrong? Regards, Martin Virus checked by G DATA AntiVirus

Re: [CMake] WORKING_DIRECTORY ignored for ADD_CUSTOM_COMMAND on Visual Studio?

2008-06-26 Thread Martin Apel
properly. But still, my impression is, that the Visual Studio generator ignores this parameter. Regards, Martin Bill Hoffman wrote: Martin Apel wrote: Hi all, I got the impression, that the CMake generator for Visual Studio 7 ignores the working directory set in ADD_CUSTOM_COMMAND

[CMake] Missing header files in Visual Studio project

2008-06-25 Thread Martin Apel
Hi all, I am using the CMake generator for Visual Studio 2005 to generate multiple projects. CMake generates one project file per library, which is fine. When looking at a generated project inside Visual Studio the project tree contains Header files and Source files. Strange is, that under

Re: [CMake] GCC version variable

2008-06-19 Thread Martin Apel
Mike Jackson wrote: This is taken from a FindBoost.cmake file I had laying around. Adjust for your needs: EXEC_PROGRAM(${CMAKE_CXX_COMPILER} ARGS --version OUTPUT_VARIABLE _boost_COMPILER_VERSION ) STRING(REGEX

Re: [CMake] How to set platform-specific compiler-options from within CMakeFiles

2008-06-06 Thread Martin Apel
(CMAKE_COMPILER_IS_GNUCC) IF(CMAKE_COMPILER_IS_GNUCXX) SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -fmessage-length=0) ENDIF(CMAKE_COMPILER_IS_GNUCXX) Hope that helps a bit -- Mike Jackson Senior Research Engineer Innovative Management Technology Services On Jun 5, 2008, at 11:21 AM, Martin Apel wrote

Re: [CMake] How to set platform-specific compiler-options from within CMakeFiles

2008-06-06 Thread Martin Apel
Mike Jackson wrote: typically, the PROJECT() statement is the first line of your CMakeLists.txt. Could you explain your project layout a bit more? I found out, that CMAKE_CXX_FLAGS is set to the compound of $ENV{CXXFLAGS} and the platform-specific default at the time, the PROJECT statement

[CMake] Import library not generated under Visual Studio

2008-06-05 Thread Martin Apel
Hi all, I am trying to port a project using CMake 2.6 from Linux to Windows. The project build works without problems under Linux. However when trying to build the project inside Visual Studio 8 after having generated the project files using CMake, no import libraries are generated. The

Re: [CMake] Import library not generated under Visual Studio

2008-06-05 Thread Martin Apel
Christian Ehrlicher wrote: Von: Martin Apel Hi all, I am trying to port a project using CMake 2.6 from Linux to Windows. The project build works without problems under Linux. However when trying to build the project inside Visual Studio 8 after having generated the project files using CMake

[CMake] How to set platform-specific compiler-options from within CMakeFiles

2008-06-05 Thread Martin Apel
Hi all, I am trying to set the CMAKE_CXX_FLAGS or CMAKE_CXX_FLAGS_INIT variable, such that it contains flags to turn off specific warnings for the Visual Studio compiler. I definitely want to set these additional flags from within a CMakeFile, specifying them on the command line or

Re: [CMake] Custom-Targets with unknown outputs

2008-05-15 Thread Martin Apel
Christoph Cullmann wrote: Am Mittwoch 14 Mai 2008 16:30:24 schrieben Sie: Are you sure the generated source file names are completely unpredictable? Unless some random generator is being used, those names are probably predictable, and it might be worth your while to look further into

[CMake] How to link executable with libraries containing circular dependencies

2008-04-22 Thread Martin Apel
Hi there, I am trying to link an executable with multiple libraries, which reference each other in a circular fashion. It seems, that I cannot specify the same library multiple times in TARGET_LINK_LIBRARIES, so the link line will always end up with each library listed exactly once. In my