blob: 4483bbce18602f9c589027112daa455d24b36865 [file] [log] [blame]
Andrew Geisslerc723b722021-01-08 16:14:09 -06001From ca105727dc4862733c3aad09e9de819be63a7b6b Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Sun, 27 Dec 2020 23:18:10 +0100
4Subject: [PATCH] cm_cxx_features.cmake: do not try to run the test binary
5
6This causes errors when cross compiling cmake.
7
8Upstream-Status: Pending
9Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
10---
11 Source/Checks/cm_cxx_features.cmake | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake
15index 663d89a..e8dca3b 100644
16--- a/Source/Checks/cm_cxx_features.cmake
17+++ b/Source/Checks/cm_cxx_features.cmake
18@@ -81,7 +81,7 @@ if(CMake_HAVE_CXX_MAKE_UNIQUE)
19 endif()
20 cm_check_cxx_feature(unique_ptr)
21 if (NOT CMAKE_CXX_STANDARD LESS "17")
22- cm_check_cxx_feature(filesystem TRY_RUN)
23+ cm_check_cxx_feature(filesystem)
24 else()
25 set(CMake_HAVE_CXX_FILESYSTEM FALSE)
26 endif()