diff options
author | Jehan <jehan@girinstud.io> | 2017-05-28 15:32:06 +0200 |
---|---|---|
committer | Jehan <jehan@girinstud.io> | 2017-05-28 15:32:06 +0200 |
commit | 1bf198cb0f8692113b199c6f131b7f9123a4acc1 (patch) | |
tree | 48a6cb2ce127bd859ce167c83c19c713314b1f04 | |
parent | 98bf4d73fdc1400a16209cb55840fd7dd46632ab (diff) |
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.
-rw-r--r-- | src/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/tools/CMakeLists.txt | 2 | ||||
-rw-r--r-- | test/CMakeLists.txt | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 952b594..70034f4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -79,6 +79,8 @@ add_library( ${UCHARDET_LIBRARY} ${UCHARDET_SOURCES} ) +set_property(TARGET ${UCHARDET_LIBRARY} + PROPERTY CXX_STANDARD 11) if (UCHARDET_STATIC_LIBRARY) add_library( @@ -86,6 +88,8 @@ if (UCHARDET_STATIC_LIBRARY) STATIC ${UCHARDET_SOURCES} ) + set_property(TARGET ${UCHARDET_STATIC_LIBRARY} + PROPERTY CXX_STANDARD 11) endif (UCHARDET_STATIC_LIBRARY) set_target_properties( diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt index fa15eb2..ca4e765 100644 --- a/src/tools/CMakeLists.txt +++ b/src/tools/CMakeLists.txt @@ -9,6 +9,8 @@ add_executable( ${UCHARDET_BINARY} ${UCHARDET_SOURCES} ) +set_property(TARGET ${UCHARDET_BINARY} + PROPERTY CXX_STANDARD 11) target_link_libraries( ${UCHARDET_BINARY} diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a059044..565c0e7 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -7,6 +7,8 @@ add_executable( uchardet-tests ${UCHARDET_TEST_SOURCES} ) +set_property(TARGET uchardet-tests + PROPERTY CXX_STANDARD 11) target_link_libraries( uchardet-tests |