Skip to content

Commit 1d1b1b1

Browse files
committed
build: bump CMake minimum requirement and drop workaround
CMake 3.19.0 fixed the compiler invocation requiring the local workaround. Match the runtimes CMake version requirement and drop the workaround.
1 parent 1bf870d commit 1d1b1b1

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

CMakeLists.txt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,14 @@
11

2-
cmake_minimum_required(VERSION 3.15.1)
2+
cmake_minimum_required(VERSION 3.26...3.29)
33

44
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
55

6-
# NOTE(compnerd) enable CMP0091 - select MSVC runtime based on
7-
# CMAKE_MSVC_RUNTIME_LIBRARY. Requires CMake 3.15 or newer.
8-
if(POLICY CMP0091)
9-
cmake_policy(SET CMP0091 NEW)
10-
endif()
11-
126
project(dispatch
137
VERSION 1.3
148
LANGUAGES C CXX)
159

1610
set(CMAKE_POSITION_INDEPENDENT_CODE YES)
1711

18-
if("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")
19-
include(ClangClCompileRules)
20-
endif()
21-
2212
if(CMAKE_SYSTEM_NAME STREQUAL Windows)
2313
include(CheckCSourceCompiles)
2414
include(CheckSymbolExists)

cmake/modules/ClangClCompileRules.cmake

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)