Unify all package related names to msgpack-c.

Update the version to 6.0.0.
This commit is contained in:
Takatoshi Kondo
2023-02-28 10:43:13 +09:00
parent 551308ae10
commit 01f3d24fee
15 changed files with 82 additions and 77 deletions

View File

@@ -19,7 +19,7 @@ FOREACH (source_file ${exec_PROGRAMS})
${source_file}
)
TARGET_LINK_LIBRARIES (${source_file_we}
msgpackc
msgpack-c
)
IF ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
SET_PROPERTY (TARGET ${source_file_we} APPEND_STRING PROPERTY COMPILE_FLAGS " -Wall -Wextra")

View File

@@ -3,15 +3,15 @@ project (example)
if(EXAMPLE_MSGPACK_EMBEDDED)
add_subdirectory(msgpack-c)
set(msgpackc_DIR ${CMAKE_CURRENT_BINARY_DIR}/msgpack-c)
set(msgpack-c_DIR ${CMAKE_CURRENT_BINARY_DIR}/msgpack-c)
endif()
find_package(msgpackc REQUIRED)
find_package(msgpack-c REQUIRED)
add_executable (${PROJECT_NAME} ${CMAKE_CURRENT_LIST_DIR}/../simple_c.c)
target_link_libraries(${PROJECT_NAME} msgpackc)
target_link_libraries(${PROJECT_NAME} msgpack-c)
if(TARGET msgpackc-static)
if(TARGET msgpack-c-static)
add_executable (${PROJECT_NAME}-static ${CMAKE_CURRENT_LIST_DIR}/../simple_c.c)
target_link_libraries(${PROJECT_NAME}-static msgpackc-static)
target_link_libraries(${PROJECT_NAME}-static msgpack-c-static)
endif()