From 20895f941ee4e1ffe8248c30c01322970479d7cd Mon Sep 17 00:00:00 2001 From: hofnarr Date: Fri, 8 May 2020 02:19:38 +0300 Subject: [PATCH] cmake: change variable name --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 00613a8..7302d4e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -395,14 +395,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})