Skip to content

Commit

Permalink
clean cmake_policies
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyMlashkin committed Sep 16, 2024
1 parent faab231 commit 496af2c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 21 deletions.
2 changes: 1 addition & 1 deletion crypto3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cmake_minimum_required(VERSION 3.21)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")

find_package(CM)
find_package(CM REQUIRED)
include(CMConfig)
include(CMSetupVersion)
cm_workspace(crypto3)
Expand Down
3 changes: 0 additions & 3 deletions crypto3/cmake/modules/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@

cmake_policy(SET CMP0057 NEW)

set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${CMAKE_CURRENT_BINARY_DIR}/tmp)

set(SKIP_TESTS)
Expand Down
2 changes: 1 addition & 1 deletion evm-assigner/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright 2019 The evmone Authors.
# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.16...3.27)
cmake_minimum_required(VERSION 3.22 FATAL_ERROR)

option(BUILD_SHARED_LIBS "Build evmone as a shared library" ON)
option(EVMONE_TESTING "Build tests and test tools" OFF)
Expand Down
5 changes: 1 addition & 4 deletions evm-assigner/lib/assigner/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
cmake_minimum_required(VERSION 2.8.12)

cmake_policy(SET CMP0028 NEW)
cmake_policy(SET CMP0063 NEW)
cmake_minimum_required(VERSION 3.22 FATAL_ERROR)

option(BUILD_ASSIGNER_TESTS "Build unit tests" FALSE)

Expand Down
4 changes: 0 additions & 4 deletions proof-producer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
set(ZK_PLACEHOLDER_DEBUG_ENABLED TRUE)
endif()

cmake_policy(SET CMP0042 NEW)
cmake_policy(SET CMP0028 NEW)
cmake_policy(SET CMP0057 NEW)

find_package(CM REQUIRED)
include(CMConfig)
include(CMDeploy)
Expand Down
10 changes: 2 additions & 8 deletions transpiler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,9 @@
# http://www.boost.org/LICENSE_1_0.txt
#---------------------------------------------------------------------------#

cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.22 FATAL_ERROR)

cmake_policy(SET CMP0028 NEW)
cmake_policy(SET CMP0042 NEW)
cmake_policy(SET CMP0048 NEW)
cmake_policy(SET CMP0057 NEW)
cmake_policy(SET CMP0076 NEW)

find_package(CM)
find_package(CM REQUIRED)
include(CMConfig)
include(CMSetupVersion)

Expand Down

0 comments on commit 496af2c

Please sign in to comment.