diff options
author | Brad King <brad.king@kitware.com> | 2008-04-30 18:13:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-04-30 18:13:11 (GMT) |
commit | a56e04593adc014ade99af3417137f26195b08c4 (patch) | |
tree | 21714365d0785ab4cd19973936ace21d6252423a /Modules/Platform/SunOS.cmake | |
parent | 1381aab4b7c3f6149d87a673e2bd754e7eed4ac5 (diff) | |
download | CMake-a56e04593adc014ade99af3417137f26195b08c4.zip CMake-a56e04593adc014ade99af3417137f26195b08c4.tar.gz CMake-a56e04593adc014ade99af3417137f26195b08c4.tar.bz2 |
ENH: Make /opt/SUNWspro/lib, /opt/SUNWspro/prod/lib, and /usr/ccs/lib implicit link directories on the Sun when using the SunPro compiler.
Diffstat (limited to 'Modules/Platform/SunOS.cmake')
-rw-r--r-- | Modules/Platform/SunOS.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/Platform/SunOS.cmake b/Modules/Platform/SunOS.cmake index f6fdf77..cccd0d4 100644 --- a/Modules/Platform/SunOS.cmake +++ b/Modules/Platform/SunOS.cmake @@ -62,6 +62,12 @@ ELSE(CMAKE_COMPILER_IS_GNUCXX) ENDIF(CMAKE_COMPILER_IS_GNUCXX) INCLUDE(Platform/UnixPaths) +# Add the compiler's implicit link directories. +IF("${CMAKE_C_COMPILER_ID} ${CMAKE_CXX_COMPILER_ID}" MATCHES SunPro) + LIST(APPEND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES + /opt/SUNWspro/lib /opt/SUNWspro/prod/lib /usr/ccs/lib) +ENDIF("${CMAKE_C_COMPILER_ID} ${CMAKE_CXX_COMPILER_ID}" MATCHES SunPro) + IF(NOT CMAKE_COMPILER_IS_GNUCC) SET (CMAKE_C_CREATE_PREPROCESSED_SOURCE "<CMAKE_C_COMPILER> <DEFINES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>") SET (CMAKE_C_CREATE_ASSEMBLY_SOURCE "<CMAKE_C_COMPILER> <DEFINES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>") |