[CMake] Removing flags added by the Platform modules

Alexandre.Feblot at thomsonreuters.com Alexandre.Feblot at thomsonreuters.com
Tue Jun 16 11:35:35 EDT 2009


Hi,

look at this variable: CMAKE_USER_MAKE_RULES_OVERRIDE_<LANG>

Cordialement / Regards,
Alexandre Feblot

-----Original Message-----
From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf
Of Will Dicharry
Sent: Wednesday, 03 June 2009 01:23
To: cmake at cmake.org
Subject: [CMake] Removing flags added by the Platform modules

We have a problem on AIX with the IBM C++ compiler.  In the standard 
cmake AIX Platform module in cmake-2.6/Modules/Platform, the following 
variables are set:

SET(CMAKE_PLATFORM_REQUIRED_RUNTIME_PATH /usr/lib /lib)
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-blibpath:")

The strange thing is that we don't link any shared libraries, but linker

is being invoked with those flags for our executables.  Those flags are 
introducing an incomplete link on our system, so we need to get rid of 
them.  I've tried removing them in the CMakeLists file for our project
with

set( CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "" CACHE INTERNAL "" FORCE )

but to no avail, even with a clear cache.  Is there some way to do this 
or a cleaner way to deal with the problem?

Any help would be greatly appreciated.

Thanks,
Will

-- 
Will Dicharry
Software Developer
Stellar Science Ltd Co

This email was sent to you by Thomson Reuters, the global news and information company.
Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thomson Reuters.




More information about the CMake mailing list