openbsd-ports/math/freemat/patches/patch-CMakeLists_txt
steven 6ef50da6e9 update to 4.0
switch to cmake

from Alexandr Shadchin
2010-10-24 19:28:50 +00:00

22 lines
1.0 KiB
Plaintext

$OpenBSD: patch-CMakeLists_txt,v 1.1 2010/10/24 19:28:50 steven Exp $
--- CMakeLists.txt.orig Fri Oct 9 08:24:39 2009
+++ CMakeLists.txt Sun Oct 24 14:32:58 2010
@@ -25,7 +25,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/module
SET( RESOURCEDIR "${CMAKE_INSTALL_PREFIX}/share/FreeMat-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}" )
#SET( CMAKE_VERBOSE_MAKEFILE TRUE )
-SET( LOCAL_PATH ${PROJECT_SOURCE_DIR}/dependencies/bin ${PROJECT_BINARY_DIR} /mingw/lib INTERNAL )
+SET( LOCAL_PATH ${PROJECT_SOURCE_DIR}/dependencies/bin ${PROJECT_BINARY_DIR} /mingw/lib ${OPENBSD_LOCALBASE}/include/amd ${OPENBSD_LOCALBASE}/include/umfpack INTERNAL )
IF( MSVC )
ADD_DEFINITIONS( /Dsnprintf=_snprintf /DNOMINMAX /DVERSION="${VERSION}" /DRESOURCEDIR="${RESOURCEDIR}")
@@ -59,6 +59,8 @@ MACRO (QT4_GENERATE_UI infile outfile )
ENDMACRO (QT4_GENERATE_UI)
SET(OPTIONAL_LIBS "")
+
+INCLUDE_DIRECTORIES(${OPENBSD_X11BASE}/include)
######################################################################
# PCRE Package