mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-04-21 08:18:59 +02:00

The cmake target of an alias may not be an Imported Target. Always build the msgpackc target and only build the msgpackc-static target if both should be build to fix issue #801. Thereby the type (shared or static) of the msgpackc target depends on the build configuration.
21 lines
320 B
CMake
21 lines
320 B
CMake
#.rst:
|
|
# msgpack
|
|
# -------
|
|
#
|
|
# The following import targets are created
|
|
#
|
|
# ::
|
|
#
|
|
# msgpackc
|
|
# msgpackc-cxx
|
|
# msgpackc-static (optional)
|
|
#
|
|
|
|
@PACKAGE_INIT@
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
if(NOT TARGET msgpackc AND NOT TARGET msgpackc-static)
|
|
include("${CMAKE_CURRENT_LIST_DIR}/msgpack-targets.cmake")
|
|
endif()
|