29 lines
920 B
Diff
29 lines
920 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -87,7 +87,7 @@
|
|
option(EIGEN_BUILD_DEMOS "Toggles the building of the Eigen demos" ${PROJECT_IS_TOP_LEVEL})
|
|
|
|
# Disable pkgconfig only for native Windows builds
|
|
-if(NOT WIN32 OR NOT CMAKE_HOST_SYSTEM_NAME MATCHES Windows)
|
|
+if(NOT MSVC)
|
|
option(EIGEN_BUILD_PKGCONFIG "Build pkg-config .pc file for Eigen" ${PROJECT_IS_TOP_LEVEL})
|
|
endif()
|
|
option(EIGEN_BUILD_CMAKE_PACKAGE "Enables the creation of EigenConfig.cmake and related files" ${PROJECT_IS_TOP_LEVEL})
|
|
--- a/eigen3.pc.in
|
|
+++ b/eigen3.pc.in
|
|
@@ -1,9 +1,11 @@
|
|
prefix=@CMAKE_INSTALL_PREFIX@
|
|
exec_prefix=${prefix}
|
|
+libdir=${prefix}/lib
|
|
+includedir=${prefix}/@INCLUDE_INSTALL_DIR@
|
|
|
|
Name: Eigen3
|
|
Description: A C++ template library for linear algebra: vectors, matrices, and related algorithms
|
|
Requires:
|
|
Version: @EIGEN_VERSION_NUMBER@
|
|
Libs:
|
|
-Cflags: -I${prefix}/@INCLUDE_INSTALL_DIR@
|
|
+Cflags: -I${includedir}
|
|
|
|
|