cmake: fix msgpack find
This commit is contained in:
parent
e252e2c10e
commit
2ff8e53cbe
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user