[CMake] Best way to add command line parameters to compile and link step

Dieter Rosch dieter at bbd.co.za
Tue Oct 28 11:28:14 EDT 2008


Hi,

 

I am running CMake on AIX 64-bit. When compiling in 64 bit on AIX, one needs
to add the the flag -q64 to the C and C++ compiler, and -X64 to the ar
command.

 

I was able to do it by copying the Modules/Platform/AIX.cmake file into my
own directory, and overriding it with the CMAKE_USER_MAKE_RULES_OVERRIDE_CXX
command. The problem is that I did in CMake 2.4, and when I upgraded to 2.6,
my overriding no longer matched 2.6's requirements. 

 

What is best/most correct way to do this? Put another way, I would like to
not go through the same pain in future when upgrading my CMake - what would
be required from my side in order to submit a patch to the CMake project, to
support AIX 64 bit in future?

 

Thank you in advance.

 

Regards,

Dieter

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081028/df2c0fee/attachment.htm>


More information about the CMake mailing list