2010-07-12 15:19:30 -04:00
|
|
|
$OpenBSD: patch-Modules_Platform_OpenBSD_cmake,v 1.4 2010/07/12 19:19:30 dcoppa Exp $
|
|
|
|
--- Modules/Platform/OpenBSD.cmake.orig Mon Jun 28 17:15:57 2010
|
|
|
|
+++ Modules/Platform/OpenBSD.cmake Fri Jul 9 16:21:13 2010
|
|
|
|
@@ -1,5 +1,24 @@
|
2010-05-28 16:21:48 -04:00
|
|
|
INCLUDE(Platform/NetBSD)
|
2010-07-12 15:19:30 -04:00
|
|
|
|
2006-07-20 05:23:13 -04:00
|
|
|
+IF($ENV{LOCALBASE})
|
2010-05-28 16:21:48 -04:00
|
|
|
+ SET(OPENBSD_LOCALBASE $ENV{LOCALBASE})
|
2006-07-20 05:23:13 -04:00
|
|
|
+ELSE($ENV{LOCALBASE})
|
2010-05-28 16:21:48 -04:00
|
|
|
+ SET(OPENBSD_LOCALBASE /usr/local)
|
2006-07-20 05:23:13 -04:00
|
|
|
+ENDIF($ENV{LOCALBASE})
|
2010-07-12 15:19:30 -04:00
|
|
|
+
|
2006-07-20 05:23:13 -04:00
|
|
|
+IF($ENV{X11BASE})
|
2010-05-28 16:21:48 -04:00
|
|
|
+ SET(OPENBSD_X11BASE $ENV{X11BASE})
|
2006-07-20 05:23:13 -04:00
|
|
|
+ELSE($ENV{X11BASE})
|
2010-05-28 16:21:48 -04:00
|
|
|
+ SET(OPENBSD_X11BASE /usr/X11R6)
|
2006-07-20 05:23:13 -04:00
|
|
|
+ENDIF($ENV{X11BASE})
|
|
|
|
+
|
2010-07-12 15:19:30 -04:00
|
|
|
+SET(CMAKE_SYSTEM_INCLUDE_PATH ${CMAKE_SYSTEM_INCLUDE_PATH} /usr/include
|
2006-07-20 05:23:13 -04:00
|
|
|
+ ${OPENBSD_LOCALBASE}/include ${OPENBSD_X11BASE}/include)
|
2010-07-12 15:19:30 -04:00
|
|
|
+SET(CMAKE_SYSTEM_LIBRARY_PATH ${CMAKE_SYSTEM_LIBRARY_PATH} /usr/lib
|
2006-07-20 05:23:13 -04:00
|
|
|
+ ${OPENBSD_LOCALBASE}/lib ${OPENBSD_X11BASE}/lib)
|
2010-07-12 15:19:30 -04:00
|
|
|
+SET(CMAKE_SYSTEM_PROGRAM_PATH ${CMAKE_SYSTEM_PROGRAM_PATH} /bin /usr/bin
|
2006-07-20 05:23:13 -04:00
|
|
|
+ ${OPENBSD_LOCALBASE}/bin /sbin /usr/sbin ${OPENBSD_LOCALBASE}/sbin)
|
2010-05-28 16:21:48 -04:00
|
|
|
+
|
2010-07-12 15:19:30 -04:00
|
|
|
# On OpenBSD, the compile time linker does not share it's configuration with
|
|
|
|
# the runtime linker. This will extract the library search paths from the
|
|
|
|
# system's ld.so.hints file which will allow CMake to set the appropriate
|
|
|
|
@@ -16,3 +35,4 @@ IF(NOT CMAKE_PLATFORM_RUNTIME_PATH)
|
|
|
|
ENDIF()
|
|
|
|
|
2010-05-28 16:21:48 -04:00
|
|
|
SET_PROPERTY(GLOBAL PROPERTY FIND_LIBRARY_USE_OPENBSD_VERSIONING 1)
|
2010-07-12 15:19:30 -04:00
|
|
|
+SET(CMAKE_INSTALL_SO_NO_EXE 1)
|