File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 16
16
# under the License.
17
17
18
18
cmake_minimum_required (VERSION 3.22 )
19
+ cmake_policy (SET CMP0135 NEW )
20
+
19
21
project (opendal-c )
20
22
21
23
if (NOT CMAKE_BUILD_TYPE )
22
24
set (CMAKE_BUILD_TYPE "Debug" )
23
25
endif ()
24
26
25
27
option (TEST_ENABLE_ASAN "Enable AddressSanitizer for tests" OFF )
26
- set (GOOGLETEST_VERSION 1.15.2 )
27
28
28
29
# force the compiler to support these standards
29
30
set (CMAKE_C_STANDARD 11 )
@@ -35,6 +36,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
35
36
36
37
# fetch google test via GitHub
37
38
include (FetchContent )
39
+
40
+ set (GOOGLETEST_VERSION 1.15.2 )
38
41
FetchContent_Declare (
39
42
googletest
40
43
URL https://github.com/google/googletest/archive/refs/tags/v${GOOGLETEST_VERSION}.zip
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
89
89
- To ** build the library and header file** .
90
90
91
91
``` sh
92
- mkdir build && cd build
92
+ mkdir -p build && cd build
93
93
cmake ..
94
94
make
95
95
```
You can’t perform that action at this time.
0 commit comments