mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 01:29:41 +08:00
b442de3a61
* [scenepic] new port * format * update version database * resolve comments * Update version database * update version database * update version database * fix install path * x-add-version * Update scenepic.json * suggested changes * update version Co-authored-by: Lily Wang <494550702@qq.com> Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>
24 lines
672 B
Diff
24 lines
672 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index a2db3db..a10a942 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -100,13 +100,11 @@ FetchContent_Declare(
|
|
|
|
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
|
|
|
|
-if(NOT TARGET Eigen3::Eigen)
|
|
- FetchContent_GetProperties(eigen)
|
|
- if(NOT eigen_POPULATED)
|
|
- FetchContent_Populate(eigen)
|
|
- set( BUILD_TESTING OFF )
|
|
- add_subdirectory(${eigen_SOURCE_DIR} ${eigen_BINARY_DIR} EXCLUDE_FROM_ALL)
|
|
- endif()
|
|
+find_package(Eigen3 3.4.0 REQUIRED)
|
|
+
|
|
+if(Eigen3_FOUND)
|
|
+ set( BUILD_TESTING OFF )
|
|
+ include_directories(${EIGEN3_INCLUDE_DIR})
|
|
if(NOT TARGET Eigen3::Eigen)
|
|
add_library(Eigen3::Eigen ALIAS eigen)
|
|
endif()
|