Revision: 77762
http://sourceforge.net/p/brlcad/code/77762
Author: starseeker
Date: 2020-11-20 18:41:42 +0000 (Fri, 20 Nov 2020)
Log Message:
-----------
Hmm... didn't find X11.h out of the box for itk3 on FreeBSD...
Modified Paths:
--------------
brlcad/branches/extbuild/src/other/ext/itk3/CMakeLists.txt
Modified: brlcad/branches/extbuild/src/other/ext/itk3/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/itk3/CMakeLists.txt 2020-11-20
18:37:45 UTC (rev 77761)
+++ brlcad/branches/extbuild/src/other/ext/itk3/CMakeLists.txt 2020-11-20
18:41:42 UTC (rev 77762)
@@ -86,6 +86,15 @@
# We're building Itk
add_definitions(-DBUILD_itk)
+# We want to check /usr/local by default, so add it if it exists. (We need
+# this to find X11 headers on FreeBSD, for example...)
+if (IS_DIRECTORY /usr/local)
+ set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} /usr/local)
+ if (IS_DIRECTORY /usr/local/include)
+ set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} /usr/local/include)
+ endif (IS_DIRECTORY /usr/local/include)
+endif (IS_DIRECTORY /usr/local)
+
#--------------------------------------------------------------------
# We need to enable the threading macros found in tcl.h and tclInt.h.
# The use of the threading features is determined by the core the
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits