diff --git a/cmake/Modules/FindMsgPack.cmake b/cmake/Modules/FindMsgPack.cmake index aac3de7b1..4946e1fd5 100644 --- a/cmake/Modules/FindMsgPack.cmake +++ b/cmake/Modules/FindMsgPack.cmake @@ -19,8 +19,8 @@ endif() # msgpack 1.2.0 recompiles all .h every cmake run - it cause recompile all freeminer src. if(NOT ENABLE_SYSTEM_MSGPACK AND NOT MSGPACK_LIBRARY) - FIND_PATH(MSGPACK_INCLUDE_DIR msgpack.hpp PATHS ${CMAKE_HOME_DIRECTORY}/src/msgpack-c/include NO_DEFAULT_PATH) - FIND_LIBRARY(MSGPACK_LIBRARY NAMES libmsgpackc.a msgpackc msgpack PATHS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/src/msgpack-c NO_DEFAULT_PATH) + FIND_PATH(MSGPACK_INCLUDE_DIR msgpack.hpp PATHS ${CMAKE_HOME_DIRECTORY}/src/external/msgpack-c/include NO_DEFAULT_PATH) + FIND_LIBRARY(MSGPACK_LIBRARY NAMES libmsgpackc.a msgpackc msgpack PATHS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/src/external/msgpack-c NO_DEFAULT_PATH) IF (MSGPACK_LIBRARY) message(STATUS "Using already compiled bundled msgpack ${MSGPACK_INCLUDE_DIR} ${MSGPACK_LIBRARY}") else()