pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/cmake-Modules/Platform Update for cmake 2.6



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1a68b7af2179
branches:  trunk
changeset: 547161:1a68b7af2179
user:      markd <markd%pkgsrc.org@localhost>
date:      Sat Sep 13 11:06:08 2008 +0000

description:
Update for cmake 2.6

diffstat:

 mk/cmake-Modules/Platform/UnixPaths.cmake |  17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diffs (28 lines):

diff -r e2dacb925d8f -r 1a68b7af2179 mk/cmake-Modules/Platform/UnixPaths.cmake
--- a/mk/cmake-Modules/Platform/UnixPaths.cmake Sat Sep 13 11:00:45 2008 +0000
+++ b/mk/cmake-Modules/Platform/UnixPaths.cmake Sat Sep 13 11:06:08 2008 +0000
@@ -1,3 +1,13 @@
+SET(UNIX 1)
+
+GET_FILENAME_COMPONENT(_CMAKE_INSTALL_DIR "${CMAKE_ROOT}" PATH)
+GET_FILENAME_COMPONENT(_CMAKE_INSTALL_DIR "${_CMAKE_INSTALL_DIR}" PATH)
+
+LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH
+  # Standard
+  / /usr /usr/pkg
+  )
+
 SET(CMAKE_SYSTEM_INCLUDE_PATH ${CMAKE_SYSTEM_INCLUDE_PATH}
   # Standard
   $ENV{BUILDLINK_DIR}/include /include /usr/include 
@@ -12,3 +22,10 @@
 SET(CMAKE_SYSTEM_PROGRAM_PATH ${CMAKE_SYSTEM_PROGRAM_PATH}
   /bin /usr/bin /usr/local/bin /usr/pkg/bin /sbin
   )
+
+LIST(APPEND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
+  /lib /usr/lib /usr/lib32 /usr/lib64
+  )
+
+# Enable use of lib64 search path variants by default.
+SET_PROPERTY(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS TRUE)



Home | Main Index | Thread Index | Old Index