cmliblzma: always build as static library
This commit is contained in:
parent
4bbfea1751
commit
f05f5b01d0
|
@ -182,10 +182,6 @@ SET(LZMA_SRCS
|
||||||
liblzma/simple/x86.c
|
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)
|
CONFIGURE_FILE(config.h.in config.h @ONLY)
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(
|
INCLUDE_DIRECTORIES(
|
||||||
|
@ -209,7 +205,7 @@ ELSEIF(CMAKE_C_COMPILER_ID STREQUAL "PathScale")
|
||||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -woffall")
|
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -woffall")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
ADD_LIBRARY(cmliblzma ${LZMA_SRCS})
|
ADD_LIBRARY(cmliblzma STATIC ${LZMA_SRCS})
|
||||||
|
|
||||||
IF(CMAKE_C_COMPILER_ID STREQUAL "XL")
|
IF(CMAKE_C_COMPILER_ID STREQUAL "XL")
|
||||||
# Disable the XL compiler optimizer because it causes crashes
|
# Disable the XL compiler optimizer because it causes crashes
|
||||||
|
|
Loading…
Reference in New Issue