mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 19:20:24 +08:00
460b6d5f20
* [manyports] Update version 5 * [coolprop] Update version * Update CONTROL * Update ports/refprop-headers/CONTROL Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: Lily <47812810+LilyWangL@users.noreply.github.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
20 lines
1.0 KiB
Diff
20 lines
1.0 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 2d61aff..80ac50a 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -237,10 +237,10 @@ list(REMOVE_ITEM APP_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/Tests/CoolProp-Te
|
|
list(REMOVE_ITEM APP_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/CoolPropLib.cpp")
|
|
|
|
set (APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
-list (APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/externals/Eigen")
|
|
-list (APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/externals/msgpack-c/include")
|
|
-list (APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/externals/fmtlib/include")
|
|
-list (APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/externals/fmtlib") # should be deprecated
|
|
+find_package(Eigen3 CONFIG REQUIRED)
|
|
+find_package(msgpack CONFIG REQUIRED)
|
|
+find_package(fmt CONFIG REQUIRED)
|
|
+link_libraries(Eigen3::Eigen msgpackc msgpackc-cxx fmt::fmt)
|
|
list (APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
|
list (APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
|
|