cmake: fix msgpack find

This commit is contained in:
proller 2021-08-13 20:05:26 +03:00
parent e252e2c10e
commit 2ff8e53cbe

View File

@ -19,8 +19,8 @@ endif()
# msgpack 1.2.0 recompiles all .h every cmake run - it cause recompile all freeminer src. # 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) 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_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/msgpack-c 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) IF (MSGPACK_LIBRARY)
message(STATUS "Using already compiled bundled msgpack ${MSGPACK_INCLUDE_DIR} ${MSGPACK_LIBRARY}") message(STATUS "Using already compiled bundled msgpack ${MSGPACK_INCLUDE_DIR} ${MSGPACK_LIBRARY}")
else() else()