mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-06 16:56:40 +08:00
CMake: Allow building static-only builds
Add stdc++ to static libs in pkg-config
This commit is contained in:
parent
f53cb8cddd
commit
6500f09931
@ -63,8 +63,12 @@ set (DIR_SHARE_LOCALE ${DIR_SHARE}/locale)
|
||||
|
||||
######## Configuration
|
||||
|
||||
option(BUILD_SHARED_LIBS "Build shared library and link executable against it"
|
||||
ON)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
option(BUILD_STATIC "Build static library"
|
||||
ON)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
configure_file(
|
||||
uchardet.pc.in
|
||||
|
||||
@ -54,7 +54,6 @@ add_definitions(
|
||||
|
||||
add_library(
|
||||
${UCHARDET_TARGET}
|
||||
SHARED
|
||||
${UCHARDET_SOURCES}
|
||||
)
|
||||
|
||||
|
||||
@ -8,4 +8,5 @@ Description: An encoding detector library ported from Mozilla
|
||||
Version: @UCHARDET_VERSION@
|
||||
Requires:
|
||||
Libs: -L${libdir} -luchardet
|
||||
Libs.private: -lstdc++
|
||||
Cflags: -I${includedir}/uchardet
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user