diff --git a/CMakeLists.txt b/CMakeLists.txt index d32c96b9..dc8c58a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,6 +41,11 @@ sak_add_lrelease() option(SAK_USING_GLOG "Using glog module." ON) if(SAK_USING_GLOG) add_compile_definitions(SAK_USING_GLOG) + + set(WITH_GTEST OFF) + set(WITH_GFLAGS OFF) + set(BUILD_TESTING OFF) + sak_add_subdiretory("glog-master") endif() diff --git a/src/common/common/sakcompatibility.h b/src/common/common/sakcompatibility.h index dec1f133..7d3ed4b6 100644 --- a/src/common/common/sakcompatibility.h +++ b/src/common/common/sakcompatibility.h @@ -9,6 +9,7 @@ #ifndef SAKCOMPATIBILITY_H #define SAKCOMPATIBILITY_H +#include #include #include