fix: disable package registry export (#6569)

This commit is contained in:
nerix
2025-11-07 17:53:51 +01:00
committed by GitHub
parent a3b7c4d3b2
commit 9a78bf974a
4 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -36,7 +36,7 @@
- Def: Fixed compilation error in tests with Clang 21. (#6519) - Def: Fixed compilation error in tests with Clang 21. (#6519)
- Dev: Fixed compilation warnings on clang-cl. (#6528) - Dev: Fixed compilation warnings on clang-cl. (#6528)
- Dev: Fixed compilation error in tests with Clang 21. (#6519) - Dev: Fixed compilation error in tests with Clang 21. (#6519)
- Dev: Use CMake's `FetchContent` for RapidJSON, PajladaSignals, PajladaSerialize, and PajladaSettings. (#6560, #6567) - Dev: Use CMake's `FetchContent` for RapidJSON, PajladaSignals, PajladaSerialize, and PajladaSettings. (#6560, #6567, #6569)
- Dev: The LuaLS meta files moved from `docs/plugin-meta.lua` to `docs/lua-meta/globals.lua`. (#6530) - Dev: The LuaLS meta files moved from `docs/plugin-meta.lua` to `docs/lua-meta/globals.lua`. (#6530)
- Dev: Compile time definitions for `Windows.h` are now conditional based on `WIN32` instead of `MSVC`. (#6534) - Dev: Compile time definitions for `Windows.h` are now conditional based on `WIN32` instead of `MSVC`. (#6534)
- Dev: Refactored split container nodes to use shared pointers. (#6435) - Dev: Refactored split container nodes to use shared pointers. (#6435)
+4 -3
View File
@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.15) cmake_minimum_required(VERSION 3.15)
set(CMAKE_EXPORT_NO_PACKAGE_REGISTRY On) # For rapidjson
cmake_policy(SET CMP0087 NEW) # evaluates generator expressions in `install(CODE/SCRIPT)` cmake_policy(SET CMP0087 NEW) # evaluates generator expressions in `install(CODE/SCRIPT)`
cmake_policy(SET CMP0091 NEW) # select MSVC runtime library through `CMAKE_MSVC_RUNTIME_LIBRARY` cmake_policy(SET CMP0091 NEW) # select MSVC runtime library through `CMAKE_MSVC_RUNTIME_LIBRARY`
include(FeatureSummary) include(FeatureSummary)
@@ -224,10 +225,10 @@ if (BUILD_BENCHMARKS)
endif () endif ()
FetchContent_Declare( FetchContent_Declare(
rjlib RapidJSON
SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/lib/rapidjson SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/lib/rapidjson
EXCLUDE_FROM_ALL EXCLUDE_FROM_ALL
FIND_PACKAGE_ARGS NAMES RapidJSON FIND_PACKAGE_ARGS
) )
set(RAPIDJSON_BUILD_EXAMPLES Off CACHE INTERNAL "") set(RAPIDJSON_BUILD_EXAMPLES Off CACHE INTERNAL "")
set(RAPIDJSON_BUILD_TESTS Off CACHE INTERNAL "") set(RAPIDJSON_BUILD_TESTS Off CACHE INTERNAL "")
@@ -248,7 +249,7 @@ FetchContent_Declare(
EXCLUDE_FROM_ALL EXCLUDE_FROM_ALL
) )
FetchContent_MakeAvailable(rjlib PajladaSignals PajladaSerialize PajladaSettings) FetchContent_MakeAvailable(RapidJSON PajladaSignals PajladaSerialize PajladaSettings)
find_package(LRUCache REQUIRED) find_package(LRUCache REQUIRED)
find_package(MagicEnum REQUIRED) find_package(MagicEnum REQUIRED)