openbsd-ports/devel/cmake/patches/patch-Modules_Platform_Generic_cmake
dcoppa 8b1b17cff8 Update to cmake 2.8.1 (I also take maintainership).
"This is good, commit." espie@
2010-05-28 20:21:48 +00:00

14 lines
628 B
Plaintext

$OpenBSD: patch-Modules_Platform_Generic_cmake,v 1.1 2010/05/28 20:21:48 dcoppa Exp $
--- Modules/Platform/Generic.cmake.orig Tue Apr 6 16:45:32 2010
+++ Modules/Platform/Generic.cmake Mon May 3 11:51:48 2010
@@ -9,3 +9,9 @@
# (embedded) targets without operating system usually don't support shared libraries
SET_PROPERTY(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE)
+
+# To help the find_xxx() commands, set at least the following so CMAKE_FIND_ROOT_PATH
+# works at least for some simple cases:
+SET(CMAKE_SYSTEM_INCLUDE_PATH /include )
+SET(CMAKE_SYSTEM_LIBRARY_PATH /lib )
+SET(CMAKE_SYSTEM_PROGRAM_PATH /bin )