diff --git a/controller/CMakeLists.txt b/controller/CMakeLists.txt index 2e45db004..ac88e298a 100644 --- a/controller/CMakeLists.txt +++ b/controller/CMakeLists.txt @@ -9,6 +9,7 @@ set(ctl_src DB.cpp EmbeddedNetworkController.cpp FileDB.cpp + LFDB.cpp RabbitMQ.cpp ) @@ -16,6 +17,7 @@ set(ctl_hdr DB.hpp EmbeddedNetworkController.hpp FileDB.hpp + LFDB.hpp RabbitMQ.hpp ) @@ -27,4 +29,6 @@ if(BUILD_CENTRAL_CONTROLLER) set(ctl_hdr ${ctl_hdr} PostgreSQL.hpp) endif(BUILD_CENTRAL_CONTROLLER) -add_library(${PROJECT_NAME} STATIC ${ctl_src} ${ctl_hdr}) \ No newline at end of file +add_library(${PROJECT_NAME} STATIC ${ctl_src} ${ctl_hdr}) +target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11) + diff --git a/node/CMakeLists.txt b/node/CMakeLists.txt index c52b0da3b..9eeb3565b 100644 --- a/node/CMakeLists.txt +++ b/node/CMakeLists.txt @@ -8,6 +8,7 @@ endif(WIN32) file(GLOB core_headers *.hpp) file(GLOB core_src *.cpp) add_library(${PROJECT_NAME} STATIC ${core_src} ${core_headers}) +target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11) if(UNIX) set_source_files_properties( diff --git a/osdep/CMakeLists.txt b/osdep/CMakeLists.txt index f9741a611..6d752755d 100644 --- a/osdep/CMakeLists.txt +++ b/osdep/CMakeLists.txt @@ -48,3 +48,5 @@ elseif(UNIX) endif(WIN32) add_library(${PROJECT_NAME} STATIC ${src} ${headers}) +target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11) + diff --git a/service/CMakeLists.txt b/service/CMakeLists.txt index d54d3098b..cd1ec2e6e 100644 --- a/service/CMakeLists.txt +++ b/service/CMakeLists.txt @@ -15,4 +15,6 @@ set(headers SoftwareUpdater.hpp ) -add_library(${PROJECT_NAME} STATIC ${src} ${headers}) \ No newline at end of file +add_library(${PROJECT_NAME} STATIC ${src} ${headers}) +target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11) +