mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 03:30:38 +08:00
3e93bb69a1
* [coolprop] Cleanup * Fix uwp * [refprop-headers] Update * [if97] Avoid encoding warnings * [msgpack] More boost dependencies Cf. https://github.com/msgpack/msgpack-c/wiki/install_boost * [coolprop] Use msgpack endianess --------- Co-authored-by: Cheney-Wang <850426846@qq.com>
23 lines
974 B
Diff
23 lines
974 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 7bbf8d6..617ac93 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -247,13 +247,10 @@ list(REMOVE_ITEM APP_SOURCES
|
|
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-cxx CONFIG REQUIRED)
|
|
+find_package(fmt CONFIG REQUIRED)
|
|
+link_libraries(Eigen3::Eigen msgpack-cxx fmt::fmt)
|
|
list(APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
|
list(APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
|
|