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:
Jehan 2017-05-28 15:32:06 +02:00
parent 98bf4d73fd
commit 1bf198cb0f
3 changed files with 8 additions and 0 deletions

View File

@ -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(

View File

@ -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}

View File

@ -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