mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-10 05:59:04 +08:00
21 lines
1.0 KiB
Diff
21 lines
1.0 KiB
Diff
|
diff --git a/lang/c/src/CMakeLists.txt b/lang/c/src/CMakeLists.txt
|
||
|
index c21f1ce..accb0e3 100644
|
||
|
--- a/lang/c/src/CMakeLists.txt
|
||
|
+++ b/lang/c/src/CMakeLists.txt
|
||
|
@@ -85,13 +85,13 @@ source_group(Avro FILES ${AVRO_SRC})
|
||
|
string(REPLACE ":" "." LIBAVRO_DOT_VERSION ${LIBAVRO_VERSION})
|
||
|
|
||
|
add_library(avro-static STATIC ${AVRO_SRC})
|
||
|
-target_link_libraries(avro-static ${JANSSON_LIBRARIES} ${CODEC_LIBRARIES} ${THREADS_LIBRARIES})
|
||
|
+target_link_libraries(avro-static jansson::jansson ${CODEC_LIBRARIES} ${THREADS_LIBRARIES})
|
||
|
set_target_properties(avro-static PROPERTIES OUTPUT_NAME avro)
|
||
|
|
||
|
if (NOT WIN32)
|
||
|
# TODO: Create Windows DLLs. See http://www.cmake.org/Wiki/BuildingWinDLL
|
||
|
add_library(avro-shared SHARED ${AVRO_SRC})
|
||
|
-target_link_libraries(avro-shared ${JANSSON_LIBRARIES} ${CODEC_LIBRARIES} ${THREADS_LIBRARIES})
|
||
|
+target_link_libraries(avro-shared jansson::jansson ${CODEC_LIBRARIES} ${THREADS_LIBRARIES})
|
||
|
set_target_properties(avro-shared PROPERTIES
|
||
|
OUTPUT_NAME avro
|
||
|
SOVERSION ${LIBAVRO_DOT_VERSION})
|