Change cmake version (#8666)

Change cmake version from 3.16 to 3.18

1. Change the CMakeList's minimum require version.

2. Change the describtion document of cmake version.

Resolves: milvus-io#8407

Signed-off-by: Shen Zhi <m13120163046@163.com>
pull/8741/head
ZhiShen 2021-09-28 14:00:03 +08:00 committed by GitHub
parent bb121c59cb
commit 0e767f0e1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 7 deletions

View File

@ -79,7 +79,7 @@ Check the requirements first.
```bash ```bash
go: 1.15 go: 1.15
cmake: >=3.16 cmake: >=3.18
gcc: 7.5 gcc: 7.5
``` ```

View File

@ -11,7 +11,7 @@
# or implied. See the License for the specific language governing permissions and limitations under the License. # or implied. See the License for the specific language governing permissions and limitations under the License.
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
cmake_minimum_required( VERSION 3.14 ) cmake_minimum_required( VERSION 3.18 )
add_definitions(-DELPP_THREAD_SAFE) add_definitions(-DELPP_THREAD_SAFE)
set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON)

View File

@ -11,7 +11,7 @@
# or implied. See the License for the specific language governing permissions and limitations under the License. # or implied. See the License for the specific language governing permissions and limitations under the License.
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
cmake_minimum_required(VERSION 3.12) cmake_minimum_required(VERSION 3.18)
message(STATUS "------------------------------KNOWHERE-----------------------------------") message(STATUS "------------------------------KNOWHERE-----------------------------------")
message(STATUS "Building using CMake version: ${CMAKE_VERSION}") message(STATUS "Building using CMake version: ${CMAKE_VERSION}")

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.14...3.17 FATAL_ERROR) cmake_minimum_required( VERSION 3.18 )
project(wrapper) project(wrapper)
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 17)

View File

@ -9,7 +9,7 @@
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under the License. # or implied. See the License for the specific language governing permissions and limitations under the License.
cmake_minimum_required(VERSION 3.14...3.17 FATAL_ERROR) cmake_minimum_required( VERSION 3.18 )
project(wrapper) project(wrapper)
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 17)

View File

@ -9,7 +9,7 @@
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under the License. # or implied. See the License for the specific language governing permissions and limitations under the License.
cmake_minimum_required(VERSION 3.14...3.17 FATAL_ERROR) cmake_minimum_required( VERSION 3.18 )
project(dablooms) project(dablooms)
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 17)

View File

@ -5,7 +5,7 @@
``` ```
OS: Ubuntu 18.04 OS: Ubuntu 18.04
go1.15 go1.15
cmake: >=3.16 cmake: >=3.18
gcc 7.5 gcc 7.5
``` ```