File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 4
4
5
5
include (../cmake/common.cmake )
6
6
7
+ project (Nabla-3rdparty LANGUAGES CXX C )
8
+ enable_language (C CXX ASM ASM_NASM )
9
+
7
10
option (NBL_FORCE_RELEASE_3RDPARTY "Force map 3rdaprty's configuration regardless Nabla configuration to Release" OFF )
8
11
option (NBL_FORCE_RELWITHDEBINFO_3RDPARTY "Force map 3rdaprty's configuration regardless Nabla configuration to RelWithDebInfo" OFF )
9
12
Original file line number Diff line number Diff line change 1
1
# Copyright (C) 2018-2020 - DevSH Graphics Programming Sp. z O.O.
2
2
# This file is part of the "Nabla Engine".
3
3
# For conditions of distribution and use, see copyright notice in nabla.h.in or nabla.h
4
-
5
4
cmake_minimum_required (VERSION 3.31 )
6
- # TODO: Yas - once we deploy 4.x we will fire `cmake_policy` instead of manually picking policies
5
+
6
+ # TODO: Yas - once we deploy 4.x we will fire `cmake_policy(VERSION <min>[...<max>])` instead of manually picking policies
7
7
# https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html#policy-version
8
8
# also we should update deps which throw warnings about < 3.10 compatibility
9
- cmake_policy (SET CMP0003 NEW ) # https://cmake.org/cmake/help/latest/policy/CMP0077.html#cmp0077
10
- cmake_policy (SET CMP0077 NEW ) # https://cmake.org/cmake/help/latest/policy/CMP0077.html#cmp0077
11
- cmake_policy (SET CMP0112 NEW ) # https://cmake.org/cmake/help/latest/policy/CMP0112.html#cmp0112
12
- cmake_policy (SET CMP0141 NEW ) # https://cmake.org/cmake/help/latest/policy/CMP0141.html#policy:CMP0141
13
- cmake_policy (SET CMP0118 NEW ) # https://cmake.org/cmake/help/latest/policy/CMP0118.html#policy:CMP0118
9
+
10
+ macro (NBL_POLICY P S )
11
+ if (POLICY ${P} )
12
+ cmake_policy (SET ${P} ${S} )
13
+ set (CMAKE_POLICY_DEFAULT_${P} ${S} )
14
+ endif ()
15
+ endmacro ()
16
+
17
+ NBL_POLICY (CMP0003 NEW ) # https://cmake.org/cmake/help/latest/policy/CMP0003.html#cmp0003
18
+ NBL_POLICY (CMP0077 NEW ) # https://cmake.org/cmake/help/latest/policy/CMP0077.html#cmp0077
19
+ NBL_POLICY (CMP0112 NEW ) # https://cmake.org/cmake/help/latest/policy/CMP0112.html#cmp0112
20
+ NBL_POLICY (CMP0141 NEW ) # https://cmake.org/cmake/help/latest/policy/CMP0141.html#policy:CMP0141
21
+ NBL_POLICY (CMP0118 NEW ) # https://cmake.org/cmake/help/latest/policy/CMP0118.html#policy:CMP0118
14
22
15
23
set (NBL_BUILD_ANDROID OFF )
16
24
You can’t perform that action at this time.
0 commit comments