mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 08:10:25 +08:00
b619a233fb
* [msgpack] update version to 6.0.0 and switch to the C++ branch * update version * update * version * fix cmake config name * vdb * fix coolprop * v db * add dependencies * format * v db
24 lines
997 B
Diff
24 lines
997 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 7bbf8d6..617ac93 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -247,13 +247,11 @@ 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 fmt::fmt)
|
|
+include_directories(msgpackc-cxx)
|
|
list(APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
|
list(APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
|
|