Hmmm... I was worried that'd be the case. It makes complete sense really,
I'm just getting annoyed at this rubbish build system we're forced to use.
*grumble*
-J
----- Original Message -----
From: "Eric Noulard" <[EMAIL PROTECTED]>
To: "John Donovan" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Monday, June 04, 2007 2:49 PM
Subject: Re: [CMake] Makefile includes
2007/6/4, John Donovan <[EMAIL PROTECTED]>:
We're using a 3rd-party build system that is build around GNU make and
CodeWarrior *shudder*, and they have provided a fairly chunky file that
needs to be included at the top of the makefile, e.g.:
include $(SOME_ROOT_DIR)/build/buildtools/commondefs
Is it possible to get cmake to insert this line into my generated
makefile?
I think it has already been discussed on this list (you may have a
look in archive).
CMake does not handle such kind of
mix makefile + CMake inclusion.
Moreover you certainly don't *really* want to do it
for the following reason:
How would you use the content of your
include $(SOME_ROOT_DIR)/build/buildtools/commondefs
from within your CMakeLists.txt ?
How can you be sure the eventual makefile rules defined
in your specific file won't clash or interfere with the ones "generated"
by CMake generated Makefiles?
May be you can:
1) Ask your third party build tool provider for CMake support
2) Send on the mailing list the content of
$(SOME_ROOT_DIR)/build/buildtools/commondefs
in order for us to suggest Makefile to CMake translation
3) Design your CMake usage with orthogonal usage
of the 3-rd party buildtool and your CMake usage
then you may invoke the "3rd party buildtool make"
from an ADD_CUSTOM_COMMAND in your CMakeLists.txt
--
Erk
_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet
Managed Scanning Services - powered by MessageLabs. For further
information visit http://www.verizonbusiness.com/uk
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake