pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
brlcad: Add patch-misc_CMake_ThirdParty.cmake
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Thu Oct 20 23:36:44 2016 +0200
Changeset: 825fbbba7509f5c90079b5523b29f657cd7ce6b0
Added Files:
brlcad/patches/patch-misc_CMake_ThirdParty.cmake
Log Message:
brlcad: Add patch-misc_CMake_ThirdParty.cmake
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=825fbbba7509f5c90079b5523b29f657cd7ce6b0
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
brlcad/patches/patch-misc_CMake_ThirdParty.cmake | 31 ++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diffs:
diff --git a/brlcad/patches/patch-misc_CMake_ThirdParty.cmake b/brlcad/patches/patch-misc_CMake_ThirdParty.cmake
new file mode 100644
index 0000000..74d3ff3
--- /dev/null
+++ b/brlcad/patches/patch-misc_CMake_ThirdParty.cmake
@@ -0,0 +1,31 @@
+$NetBSD$
+
+Allow to pass library defintion from command-line.
+CMake part in this project is broken and fails to detect some libraries/headers
+for unknown reason.
+
+--- misc/CMake/ThirdParty.cmake.orig 2016-08-09 06:52:32.000000000 +0000
++++ misc/CMake/ThirdParty.cmake
+@@ -181,15 +181,15 @@ macro(THIRD_PARTY dir varname_root build
+ set(${varname_root}_FOUND_STATUS ${${varname_root}_FOUND})
+
+ # Initialize (or rather, uninitialize) variables in preparation for search
+- set(${varname_root}_FOUND "${varname_root}-NOTFOUND" CACHE STRING "${varname_root}_FOUND" FORCE)
+- mark_as_advanced(${varname_root}_FOUND)
+- set(${varname_root}_LIBRARY "${varname_root}-NOTFOUND" CACHE STRING "${varname_root}_LIBRARY" FORCE)
+- set(${varname_root}_INCLUDE_DIR "${varname_root}-NOTFOUND" CACHE STRING "${varname_root}_INCLUDE_DIR" FORCE)
++# set(${varname_root}_FOUND "${varname_root}-NOTFOUND" CACHE STRING "${varname_root}_FOUND" FORCE)
++# mark_as_advanced(${varname_root}_FOUND)
++# set(${varname_root}_LIBRARY "${varname_root}-NOTFOUND" CACHE STRING "${varname_root}_LIBRARY" FORCE)
++# set(${varname_root}_INCLUDE_DIR "${varname_root}-NOTFOUND" CACHE STRING "${varname_root}_INCLUDE_DIR" FORCE)
+
+ # Be quiet if we're doing this over
+- if("${${varname_root}_FOUND_STATUS}" MATCHES "NOTFOUND")
+- set(${varname_root}_FIND_QUIETLY TRUE)
+- endif("${${varname_root}_FOUND_STATUS}" MATCHES "NOTFOUND")
++# if("${${varname_root}_FOUND_STATUS}" MATCHES "NOTFOUND")
++# set(${varname_root}_FIND_QUIETLY TRUE)
++# endif("${${varname_root}_FOUND_STATUS}" MATCHES "NOTFOUND")
+
+ # Find the package in question. It is the toplevel CMakeLists.txt's responsibility to make
+ # sure that the CMAKE_MODULE_PATH variable is set correctly if there are local versions of
Home |
Main Index |
Thread Index |
Old Index