Change to C++14 Support 11/241211/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 18 Aug 2020 17:49:10 +0000 (18:49 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 18 Aug 2020 17:49:10 +0000 (18:49 +0100)
Change-Id: I50332a77cdb85e2f6a4458865762c451f94493b5

build/tizen/CMakeLists.txt

index 20de67e..8fb4f63 100644 (file)
@@ -4,6 +4,7 @@ CMAKE_POLICY(SET CMP0012 NEW) # Prevent dereferencing of OFF/ON as variables
 SET(name "dali2-core")
 
 SET(CMAKE_C_STANDARD 99)
+SET(CMAKE_CXX_STANDARD 14)
 PROJECT(${name})
 SET(PKG_NAME ${name})
 
@@ -135,13 +136,11 @@ IF( WIN32 ) # WIN32 includes x64 as well according to the cmake doc.
 
   ADD_COMPILE_OPTIONS( /FIdali-windows-dependencies.h ) # Adds missing definitions.
   ADD_COMPILE_OPTIONS( /vmg )                           # Avoids a 'reinterpret_cast' compile error while compiling signals and callbacks.
-  ADD_COMPILE_OPTIONS( /std:c++17 )                     # c++17 support
   ADD_COMPILE_OPTIONS( /wd4251 )                        # Ignores warning C4251: "'identifier' : class 'type' needs to have dll-interface to be used by clients of class 'type2'"
 
 ELSEIF( UNIX )
 
   # Set up compiler flags and warnings
-  ADD_COMPILE_OPTIONS( -std=c++17 )                     # c++17 support
   ADD_COMPILE_OPTIONS( -Wnon-virtual-dtor -Woverloaded-virtual -Wold-style-cast )
 
   # TODO: Clang is a lot more strict with warnings, we should address