vcpkg/ports/eigen3/disable_pkgconfig_absolute_path_check.patch

19 lines
664 B
Diff
Raw Normal View History

2020-12-17 16:14:31 +08:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dbb9bcf..84c413c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -407,11 +407,13 @@ set(PKGCONFIG_INSTALL_DIR
CACHE STRING "The directory relative to CMAKE_PREFIX_PATH where eigen3.pc is installed"
)
+if(0)
foreach(var INCLUDE_INSTALL_DIR CMAKEPACKAGE_INSTALL_DIR PKGCONFIG_INSTALL_DIR)
if(IS_ABSOLUTE "${${var}}")
message(FATAL_ERROR "${var} must be relative to CMAKE_PREFIX_PATH. Got: ${${var}}")
endif()
endforeach()
+endif()
# similar to set_target_properties but append the property instead of overwriting it
macro(ei_add_target_property target prop value)