From 1fd8462a8e76b1d124b1604fb3b6de1a23832fe4 Mon Sep 17 00:00:00 2001 From: Mike Kryjak Date: Fri, 6 Sep 2024 15:44:00 -0700 Subject: [PATCH] CMake: Replace include SourceRuns with SourceCompiles Prevously this would result in the error "Unknown CMake command "check_c_source_compiles" when compiling Hermes-3 --- cmake/FindPackageMultipass.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindPackageMultipass.cmake b/cmake/FindPackageMultipass.cmake index 2452096b56..99bbace448 100644 --- a/cmake/FindPackageMultipass.cmake +++ b/cmake/FindPackageMultipass.cmake @@ -108,7 +108,7 @@ macro (MULTIPASS_C_SOURCE_RUNS includes libraries source runs) endmacro (MULTIPASS_C_SOURCE_RUNS) macro (MULTIPASS_SOURCE_COMPILES includes libraries source runs language) - include (Check${language}SourceRuns) + include (Check${language}SourceCompiles) # This is a ridiculous hack. CHECK_${language}_SOURCE_* thinks that if the # *name* of the return variable doesn't change, then the test does # not need to be re-run. We keep an internal count which we