[CMake] Removing flags added by the Platform modules
Mike Jackson
mike.jackson at bluequartz.net
Tue Jun 2 19:48:56 EDT 2009
You can always replace the file in the modules directory with your own
edited version.
Mike Jackson
Sent from my iPod
On Jun 2, 2009, at 19:22, Will Dicharry <wdicharry at stellarscience.com>
wrote:
> 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
> _______________________________________________
> 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
More information about the CMake
mailing list