vcpkg/ports/coolprop/fix-dependency.patch
Frank b09cf765d3
[msgpack] update version to 4.1.3 (#28117)
* [msgpack] update version to 4.1.3

* update version

* version

* clean and fix license

* clean and fix license

* version

* revert

* revert

* version

* fix ci

* version

* fix coolprop and update version

* update version

* format patch

* version

* hash

* revert patch

* version

* update patch

* version

* add new function

* vdb

---------

Co-authored-by: Monica <v-liumonica@microsoft.com>
2023-03-20 11:33:03 -07:00

23 lines
971 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 414f380..619dfeb 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 CONFIG REQUIRED)
+find_package(fmt CONFIG REQUIRED)
+link_libraries(Eigen3::Eigen fmt::fmt msgpackc-cxx)
list(APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/include")
list(APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/src")