Skip to content

Commit 84e5d99

Browse files
committed
fix: silence CMake 4.x FetchContent_Populate deprecation warnings
Set CMP0169=OLD for deps that lack CMakeLists.txt (easywsclient, tiny-process-library) and genuinely need FetchContent_Populate.
1 parent dc3f51c commit 84e5d99

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
cmake_minimum_required(VERSION 3.16)
2+
# CMP0169: Allow FetchContent_Populate() for deps without CMakeLists.txt
3+
if(POLICY CMP0169)
4+
cmake_policy(SET CMP0169 OLD)
5+
endif()
26
project(fastmcpp VERSION 2.14.1 LANGUAGES CXX)
37

48
set(CMAKE_CXX_STANDARD 17)

0 commit comments

Comments
 (0)