Revision: 75575
http://sourceforge.net/p/brlcad/code/75575
Author: starseeker
Date: 2020-04-23 16:26:44 +0000 (Thu, 23 Apr 2020)
Log Message:
-----------
Ah! Finally figure out how to use CMAKE_IGNORE_PATH - it requires an explicit
directory list, not ignoring subdirectories automatically (???).
Modified Paths:
--------------
brlcad/trunk/src/other/CMakeLists.txt
Modified: brlcad/trunk/src/other/CMakeLists.txt
===================================================================
--- brlcad/trunk/src/other/CMakeLists.txt 2020-04-23 16:23:46 UTC (rev
75574)
+++ brlcad/trunk/src/other/CMakeLists.txt 2020-04-23 16:26:44 UTC (rev
75575)
@@ -44,6 +44,19 @@
unset(CMAKE_CXX_STANDARD)
###############################################################################
+# We never want our build products to be identified by searches here - we
+# either want system installed versions or nothing. Set CMAKE_IGNORE_PATH
+# values accordingly. NOTE: we must specify EXPLICITY all directories to
+# ignore as CMAKE_IGNORE_PATH does not automatically ignore subdirectories:
+#
https://cmake.org/cmake/help/latest/variable/CMAKE_IGNORE_PATH.html#variable:CMAKE_IGNORE_PATH
+set(CMAKE_IGNORE_PATH
+ ${CMAKE_BINARY_DIR}/${BIN_DIR}
+ ${CMAKE_BINARY_DIR}/${LIB_DIR}
+ ${CMAKE_INSTALL_PREFIX}/${BIN_DIR}
+ ${CMAKE_INSTALL_PREFIX}/${LIB_DIR}
+ )
+
+###############################################################################
# Unlike the misc/tools directory components built in src/other are part of
# the distribution, not just the compilation. Hence we need to make sure of
# some basic compatibility between the build settings.
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