diff options
author | Jeroen Ooms <jeroenooms@gmail.com> | 2018-12-09 17:21:28 +0100 |
---|---|---|
committer | Albert Astals Cid <tsdgeos@yahoo.es> | 2018-12-24 17:59:44 +0000 |
commit | 72c316d12e1fe26bf6b4f3911ba8e5bcc46af354 (patch) | |
tree | e2d5abc83a9a9461a0aaba389dd7eb17332916ae /cpp | |
parent | 6e7cbc713ae584d195f77845d6cafcdc80fb64ab (diff) |
Windows: only set SOVERSION for shared libs
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 78a57be5..b953d5cb 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -25,7 +25,7 @@ set(poppler_cpp_SRCS add_library(poppler-cpp ${poppler_cpp_SRCS}) set_target_properties(poppler-cpp PROPERTIES VERSION 0.5.0 SOVERSION 0) -if(MINGW) +if(MINGW AND BUILD_SHARED_LIBS) get_target_property(POPPLER_CPP_SOVERSION poppler-cpp SOVERSION) set_target_properties(poppler-cpp PROPERTIES SUFFIX "-${POPPLER_CPP_SOVERSION}${CMAKE_SHARED_LIBRARY_SUFFIX}") endif() |