Describe the enhancement requested
If we use ExternalProject and CMAKE_FIND_USE_PACKAGE_REGISTRY https://cmake.org/cmake/help/latest/variable/CMAKE_FIND_USE_PACKAGE_REGISTRY.html and running cmake twice like #48801 (comment), RapidJSONConfig.cmake in ${BUILD_DIR}/rapidjson_ep/src/rapidjson_ep-install/lib/cmake/RapidjSON/. It's not intentional.
If we use FetchContent instead of ExternalProject, it doesn't happen.
Component(s)
C++
Describe the enhancement requested
If we use
ExternalProjectandCMAKE_FIND_USE_PACKAGE_REGISTRYhttps://cmake.org/cmake/help/latest/variable/CMAKE_FIND_USE_PACKAGE_REGISTRY.html and runningcmaketwice like #48801 (comment),RapidJSONConfig.cmakein${BUILD_DIR}/rapidjson_ep/src/rapidjson_ep-install/lib/cmake/RapidjSON/. It's not intentional.If we use
FetchContentinstead ofExternalProject, it doesn't happen.Component(s)
C++