Lines 26-43
Link Here
|
26 |
set(MSGPACK_VERSION_STRING) |
26 |
set(MSGPACK_VERSION_STRING) |
27 |
endif() |
27 |
endif() |
28 |
|
28 |
|
29 |
if(MSVC) |
29 |
find_library(MSGPACK_LIBRARY NAMES msgpackc msgpack msgpackc_import msgpack-c |
30 |
# The import library for the msgpack DLL has a different name |
30 |
NAMES_PER_DIR) |
31 |
list(APPEND MSGPACK_NAMES msgpackc_import) |
|
|
32 |
else() |
33 |
list(APPEND MSGPACK_NAMES msgpackc msgpack) |
34 |
endif() |
35 |
|
36 |
find_library(MSGPACK_LIBRARY NAMES ${MSGPACK_NAMES} |
37 |
# Check each directory for all names to avoid using headers/libraries from |
38 |
# different places. |
39 |
NAMES_PER_DIR |
40 |
HINTS ${PC_MSGPACK_LIBDIR} ${PC_MSGPACK_LIBRARY_DIRS}) |
41 |
|
31 |
|
42 |
mark_as_advanced(MSGPACK_INCLUDE_DIR MSGPACK_LIBRARY) |
32 |
mark_as_advanced(MSGPACK_INCLUDE_DIR MSGPACK_LIBRARY) |
43 |
|
33 |
|