diff --git a/CMakeLists.txt b/CMakeLists.txt index 72b6621..82b58b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,9 @@ cmake_minimum_required(VERSION 3.10) +project(ulib LANGUAGES CXX VERSION 0.1.0) option(ULIB_BUILD_TESTS "Build tests" OFF) -project(ulib LANGUAGES CXX VERSION 0.1.0) +find_package(Threads REQUIRED) set(CMAKE_CXX_STANDARD 98) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) @@ -36,6 +37,10 @@ if (ULIB_BUILD_TESTS) add_executable(ulib_test "" src/base/location_unittest.cpp) + set_target_properties(ulib_test PROPERTIES + CXX_STANDARD 11 + CXX_STANDARD_REQUIRED YES + CXX_EXTENSIONS NO) target_link_libraries(ulib_test PRIVATE ulib diff --git a/README.md b/README.md index 4d16ca2..e1aa20d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ # ulib -基于C++11的框架 - -[![Build Status](https://ci.uocat.com/api/badges/tqcq/ulib/status.svg)](https://ci.uocat.com/tqcq/ulib) \ No newline at end of file +基于C++98的框架 \ No newline at end of file