summaryrefslogtreecommitdiffstats
path: root/Utilities/cmliblzma
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-06-28 21:05:37 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-06-28 21:05:37 (GMT)
commitf05f5b01d0a690e5f3e06be2c702ee659433c326 (patch)
treefb8f0f67bc9652ed3a13000be072cb3f0b25a8c7 /Utilities/cmliblzma
parent4bbfea17510d25c950747c4b0f877e5d5b1f528e (diff)
downloadCMake-f05f5b01d0a690e5f3e06be2c702ee659433c326.zip
CMake-f05f5b01d0a690e5f3e06be2c702ee659433c326.tar.gz
CMake-f05f5b01d0a690e5f3e06be2c702ee659433c326.tar.bz2
cmliblzma: always build as static library
Diffstat (limited to 'Utilities/cmliblzma')
-rw-r--r--Utilities/cmliblzma/CMakeLists.txt6
1 files changed, 1 insertions, 5 deletions
diff --git a/Utilities/cmliblzma/CMakeLists.txt b/Utilities/cmliblzma/CMakeLists.txt
index 8920536..e806680 100644
--- a/Utilities/cmliblzma/CMakeLists.txt
+++ b/Utilities/cmliblzma/CMakeLists.txt
@@ -182,10 +182,6 @@ SET(LZMA_SRCS
liblzma/simple/x86.c
)
-IF(WIN32 AND BUILD_SHARED_LIBS)
- SET(LZMA_SRCS ${LZMA_SRCS} liblzma/liblzma_w32res.rc)
-ENDIF()
-
CONFIGURE_FILE(config.h.in config.h @ONLY)
INCLUDE_DIRECTORIES(
@@ -209,7 +205,7 @@ ELSEIF(CMAKE_C_COMPILER_ID STREQUAL "PathScale")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -woffall")
ENDIF()
-ADD_LIBRARY(cmliblzma ${LZMA_SRCS})
+ADD_LIBRARY(cmliblzma STATIC ${LZMA_SRCS})
IF(CMAKE_C_COMPILER_ID STREQUAL "XL")
# Disable the XL compiler optimizer because it causes crashes