diff options
author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-05-10 03:58:51 +0000 |
---|---|---|
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-05-10 03:58:51 +0000 |
commit | 06742d6277986c9332917ac4bc18a6d526d9f004 (patch) | |
tree | d6e674031288f811988a4bc2f1354c5a49b79db0 | |
parent | a59d5acfab4485d5133114df61785b1fc633e0c6 (diff) | |
download | json-c-06742d6277986c9332917ac4bc18a6d526d9f004.tar.gz |
Issue #600: don't rename the static library on Windows, it _needs_ to have a different name because the dll build also creates a "json-c.lib" file.
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b5dfc32..254d324 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -410,9 +410,11 @@ if (BUILD_STATIC_LIBS AND BUILD_SHARED_LIBS) ) # rename the static library + if (NOT MSVC) set_target_properties(${STATIC_LIB} PROPERTIES OUTPUT_NAME ${PROJECT_NAME} ) + endif() list(APPEND CMAKE_TARGETS ${STATIC_LIB}) endif () |