Skip to content

Commit e20bbea

Browse files
Fix cmake version (#155)
* Update CMakeLists.txt * Update ubuntu-2204.Dockerfile * Update CMakeLists.txt * Update CMakeLists.txt
1 parent 287fbc3 commit e20bbea

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docker/buildx/ubuntu-2204.Dockerfile

+6
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ RUN apt update \
3333
&& apt clean \
3434
&& rm -rf /var/lib/apt/lists/*
3535

36+
# Install cmake
37+
RUN wget https://github.com/Kitware/CMake/releases/download/v3.23.5/cmake-3.23.5-linux-$(uname -m).sh \
38+
&& chmod +x cmake-3.23.5-linux-$(uname -m).sh \
39+
&& ./cmake-3.23.5-linux-$(uname -m).sh --skip-license --prefix=/usr/local \
40+
&& rm cmake-3.23.5-linux-$(uname -m).sh
41+
3642
# Install golang
3743
RUN ARCH="$(uname -m)"; \
3844
case "${ARCH}" in \

project/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16")
88
cmake_policy(SET CMP0097 NEW)
99
endif()
1010

11+
if(POLICY CMP0135) #Since cmake 3.24 it will make some download warning
12+
cmake_policy(SET CMP0135 NEW)
13+
endif()
14+
1115
project("Nebula Third Party" C CXX)
1216

1317
set(CXX_STANDARD 17)

0 commit comments

Comments
 (0)