mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Add patch fixing the behavior of FindLibkvm.cmake to prepare for CMake 2.8.11.2.
CMake >= 2.8.11 includes a bug fix [1] that ends up showing a problem with the current FindLibkvm.cmake that makes the port fail to build. Apply my upstream fix [2] to make everything work across all CMake versions. [1] http://public.kitware.com/Bug/view.php?id=13755 [2] https://github.com/fcitx/fcitx/pull/119 Approved by: portmgr (bapt)
This commit is contained in:
parent
c40104f2f1
commit
7c39c6f5c3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=322583
34
chinese/fcitx/files/patch-cmake_modules_FindLibkvm.cmake
Normal file
34
chinese/fcitx/files/patch-cmake_modules_FindLibkvm.cmake
Normal file
@ -0,0 +1,34 @@
|
||||
diff --git a/cmake/FindLibkvm.cmake b/cmake/FindLibkvm.cmake
|
||||
index a66b85d..4453fd4 100644
|
||||
--- cmake/FindLibkvm.cmake
|
||||
+++ cmake/FindLibkvm.cmake
|
||||
@@ -5,23 +5,11 @@
|
||||
# LIBKVM_INCLUDE_DIR - Libkvm include directory
|
||||
# LIBKVM_LIBRARIES - Libraries needed to use Libkvm
|
||||
#
|
||||
-
|
||||
-if(LIBKVM_INCLUDE_DIR AND LIBKVM_FOUND)
|
||||
- set(Libkvm_FIND_QUIETLY TRUE)
|
||||
-endif(LIBKVM_INCLUDE_DIR AND LIBKVM_FOUND)
|
||||
-
|
||||
+
|
||||
find_path(LIBKVM_INCLUDE_DIR kvm.h)
|
||||
-
|
||||
-set(LIBKVM_FOUND FALSE)
|
||||
-
|
||||
-if(LIBKVM_INCLUDE_DIR)
|
||||
- find_library(LIBKVM_LIBRARIES NAMES kvm)
|
||||
- if(LIBKVM_LIBRARIES)
|
||||
- set(LIBKVM_FOUND TRUE)
|
||||
- endif(LIBKVM_LIBRARIES)
|
||||
-endif(LIBKVM_INCLUDE_DIR)
|
||||
-
|
||||
+find_library(LIBKVM_LIBRARIES NAMES kvm)
|
||||
+
|
||||
include(FindPackageHandleStandardArgs)
|
||||
-find_package_handle_standard_args(Libkvm DEFAULT_MSG LIBKVM_INCLUDE_DIR LIBKVM_FOUND)
|
||||
-
|
||||
-mark_as_advanced(LIBKVM_INCLUDE_DIR LIBKVM_LIBRARIES LIBKVM_LIBC_HAS_KVM_OPEN LIBKVM_FOUND)
|
||||
+find_package_handle_standard_args(Libkvm DEFAULT_MSG LIBKVM_INCLUDE_DIR LIBKVM_LIBRARIES)
|
||||
+
|
||||
+mark_as_advanced(LIBKVM_INCLUDE_DIR LIBKVM_LIBRARIES)
|
Loading…
Reference in New Issue
Block a user