Skip to content

Commit ca0d5a5

Browse files
[CMake] Silence policies warnings
1 parent 303b890 commit ca0d5a5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CMake/config.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ list(INSERT CMAKE_MODULE_PATH 0
146146

147147
# mandatory packages
148148

149-
find_package(Boost REQUIRED)
149+
find_package(Boost REQUIRED CONFIG)
150150
if(Boost_FOUND)
151151
message(STATUS "Found Boost ${Boost_VERSION} (${Boost_INCLUDE_DIR})")
152152
endif()

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
cmake_minimum_required(VERSION 3.21) # since paraview 5.10
2+
3+
set(CMAKE_POLICY_DEFAULT_CMP0074 NEW)
4+
set(CMAKE_POLICY_DEFAULT_CMP0092 NEW)
5+
set(CMAKE_POLICY_DEFAULT_CMP0167 NEW)
6+
set(CMAKE_POLICY_DEFAULT_CMP0174 NEW)
7+
28
# The C is required to build with VTK when it has MPI
39
project(ttk VERSION 1.3.0 LANGUAGES CXX C)
410

0 commit comments

Comments
 (0)