Hi,

look at this variable: CMAKE_USER_MAKE_RULES_OVERRIDE_<LANG>

Cordialement / Regards,
Alexandre Feblot

-----Original Message-----
From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf
Of Will Dicharry
Sent: Wednesday, 03 June 2009 01:23
To: cmake@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.


_______________________________________________
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

Reply via email to