mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-06 16:56:40 +08:00
Make C++11 the standard used for uchardet.
As discussed in bug 101032, it seems like the most common usage nowadays. Let's make a specific choice to avoid different behavior on different builds later on.
This commit is contained in:
parent
98bf4d73fd
commit
1bf198cb0f
@ -79,6 +79,8 @@ add_library(
|
|||||||
${UCHARDET_LIBRARY}
|
${UCHARDET_LIBRARY}
|
||||||
${UCHARDET_SOURCES}
|
${UCHARDET_SOURCES}
|
||||||
)
|
)
|
||||||
|
set_property(TARGET ${UCHARDET_LIBRARY}
|
||||||
|
PROPERTY CXX_STANDARD 11)
|
||||||
|
|
||||||
if (UCHARDET_STATIC_LIBRARY)
|
if (UCHARDET_STATIC_LIBRARY)
|
||||||
add_library(
|
add_library(
|
||||||
@ -86,6 +88,8 @@ if (UCHARDET_STATIC_LIBRARY)
|
|||||||
STATIC
|
STATIC
|
||||||
${UCHARDET_SOURCES}
|
${UCHARDET_SOURCES}
|
||||||
)
|
)
|
||||||
|
set_property(TARGET ${UCHARDET_STATIC_LIBRARY}
|
||||||
|
PROPERTY CXX_STANDARD 11)
|
||||||
endif (UCHARDET_STATIC_LIBRARY)
|
endif (UCHARDET_STATIC_LIBRARY)
|
||||||
|
|
||||||
set_target_properties(
|
set_target_properties(
|
||||||
|
|||||||
@ -9,6 +9,8 @@ add_executable(
|
|||||||
${UCHARDET_BINARY}
|
${UCHARDET_BINARY}
|
||||||
${UCHARDET_SOURCES}
|
${UCHARDET_SOURCES}
|
||||||
)
|
)
|
||||||
|
set_property(TARGET ${UCHARDET_BINARY}
|
||||||
|
PROPERTY CXX_STANDARD 11)
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
${UCHARDET_BINARY}
|
${UCHARDET_BINARY}
|
||||||
|
|||||||
@ -7,6 +7,8 @@ add_executable(
|
|||||||
uchardet-tests
|
uchardet-tests
|
||||||
${UCHARDET_TEST_SOURCES}
|
${UCHARDET_TEST_SOURCES}
|
||||||
)
|
)
|
||||||
|
set_property(TARGET uchardet-tests
|
||||||
|
PROPERTY CXX_STANDARD 11)
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
uchardet-tests
|
uchardet-tests
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user