mirror of
https://github.com/qpdf/qpdf.git
synced 2024-09-28 04:59:05 +00:00
Strip DLLs with mingw in Release mode
This commit is contained in:
parent
ef24a4151b
commit
280c9057c9
@ -472,6 +472,8 @@ if(BUILD_SHARED_LIBS)
|
|||||||
# Reference: Platform/Windows-GNU.cmake in the cmake installation
|
# Reference: Platform/Windows-GNU.cmake in the cmake installation
|
||||||
set(CMAKE_SHARED_LIBRARY_PREFIX "") # libqpdf$v.dll -> qpdf$v.dll
|
set(CMAKE_SHARED_LIBRARY_PREFIX "") # libqpdf$v.dll -> qpdf$v.dll
|
||||||
set(CMAKE_IMPORT_LIBRARY_SUFFIX ".a") # libqpdf.dll.a -> libqpdf.a
|
set(CMAKE_IMPORT_LIBRARY_SUFFIX ".a") # libqpdf.dll.a -> libqpdf.a
|
||||||
|
# Ensure the DLLs are striped in Release mode.
|
||||||
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s")
|
||||||
endif()
|
endif()
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
# Avoid linker warning from mixing libraries built with /MT and /MD.
|
# Avoid linker warning from mixing libraries built with /MT and /MD.
|
||||||
|
Loading…
Reference in New Issue
Block a user