[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] How to build 2 targets from the same source,
From:       Eike Kroemer <eike-michael.kroemer () atlas-elektronik ! com>
Date:       2009-08-31 5:56:47
Message-ID: 4A9B661F.5010502 () atlas-elektronik ! com
[Download RAW message or body]

Hi Marcel,

[...]
> See tiny example below (hope this helps).
Yes, it does, thank you very much for the detailed walkthrough.

Based on your suggestion I've experimented a bit and found that my key
issues were:

- introducing a separated build-directory structure - should have done
  that long before as my makefiles needed a 'make partialclean' and a
  flag-file .LAST_TARGET for switching between targets, ähh,
  historically grown....

- giving up on a single main Makefile/CMakeLists.txt for all targets,
  handling those as separate projects makes more sense (perhaps I'll
  keep my main Makefile just to call configure for all CMake-projects).

- stop calling cmake from a directory that is _common_ to all builds;
  changing into a build directory and CMaking from there works fine.

Thanks again,

  Eike
_______________________________________________
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_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic