From: hofnarr Date: Thu, 7 May 2020 23:19:38 +0000 (+0300) Subject: cmake: change variable name X-Git-Tag: json-c-0.15-20200726~58^2~1^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=558ef8609cebbab37830e15d34a3716de8b37c73;p=thirdparty%2Fjson-c.git cmake: change variable name --- diff --git a/CMakeLists.txt b/CMakeLists.txt index e7b40865..5becd748 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -403,14 +403,14 @@ target_include_directories(${PROJECT_NAME} # Allow to build static and shared libraries at the same time if (BUILD_STATIC_LIBS) - set(ORIGINAL_STATIC_LIB_NAME ${PROJECT_NAME}-static) - add_library(${ORIGINAL_STATIC_LIB_NAME} STATIC + set(STATIC_LIB ${PROJECT_NAME}-static) + add_library(${STATIC_LIB} STATIC ${JSON_C_SOURCES} ${JSON_C_HEADERS} ) # rename the static library - set_target_properties(${ORIGINAL_STATIC_LIB_NAME} PROPERTIES + set_target_properties(${STATIC_LIB} PROPERTIES OUTPUT_NAME ${PROJECT_NAME} ) list(APPEND CMAKE_TARGETS ${STATIC_LIB})