Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Commit

Permalink
Merge pull request #7 in HSE/mpool from updates/NFSE-4213-mpool-build…
Browse files Browse the repository at this point in the history
… to v1.7

* commit '85135884d8767307e27fb2c0313228529fb6be76':
  Change mininum cmake version to 3.6.
  • Loading branch information
nabeelmmd committed May 19, 2020
2 parents fe867cb + 8513588 commit 433784b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Copyright (C) 2015-2020 Micron Technology, Inc. All rights reserved.
#

cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.6)
if(${CMAKE_MAJOR_VERSION} GREATER 2)
cmake_policy(SET CMP0046 OLD)
endif()
Expand Down Expand Up @@ -63,13 +63,7 @@ include_directories( ${MPOOL_STAGE_INSTALL_PREFIX}/include )

# increasing warning levels
set( CFLAGS_WARN_1 "${CFLAGS_WARN_0} -Wall -Werror -std=gnu99")

if ( "${MPOOL_DISTRO}" STREQUAL "el6" )
set( CFLAGS_WARN_2 "${CFLAGS_WARN_1} -Wlogical-op -Wno-missing-field-initializers -Wuninitialized -Wno-format-zero-length")
else()
set( CFLAGS_WARN_2 "${CFLAGS_WARN_1} -Wlogical-op -Wno-missing-field-initializers -Wuninitialized -Wmaybe-uninitialized ")
endif()

set( CFLAGS_WARN_2 "${CFLAGS_WARN_1} -Wlogical-op -Wno-missing-field-initializers -Wuninitialized -Wmaybe-uninitialized ")
set( CFLAGS_WARN_3 "${CFLAGS_WARN_2} -Wextra -Wno-conversion -Wno-sign-conversion -Wno-sign-compare -Wno-unused-parameter")
set( CFLAGS_WARN_4 "${CFLAGS_WARN_2} -Wextra -Wconversion -Wsign-conversion -Wsign-compare -Wunused-parameter")
set( CFLAGS_WARN_MAX "${CFLAGS_WARN_4}")
Expand Down

0 comments on commit 433784b

Please sign in to comment.