summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/try_run/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-12-07 15:45:00 (GMT)
committerBrad King <brad.king@kitware.com>2023-12-07 15:49:25 (GMT)
commit30ab0f576f517ff6992f314cca05fcc30b86271f (patch)
tree9f6fe3f00a43fe6c09addd7387f6acfffcce81b7 /Tests/RunCMake/try_run/RunCMakeTest.cmake
parenta5de5da9cab53839f8b24096e8713da39960af7c (diff)
downloadCMake-30ab0f576f517ff6992f314cca05fcc30b86271f.zip
CMake-30ab0f576f517ff6992f314cca05fcc30b86271f.tar.gz
CMake-30ab0f576f517ff6992f314cca05fcc30b86271f.tar.bz2
Tests: Add inspection step to RunCMake.try_run
Diffstat (limited to 'Tests/RunCMake/try_run/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/try_run/RunCMakeTest.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/try_run/RunCMakeTest.cmake b/Tests/RunCMake/try_run/RunCMakeTest.cmake
index 38e1a95..b81c1ed 100644
--- a/Tests/RunCMake/try_run/RunCMakeTest.cmake
+++ b/Tests/RunCMake/try_run/RunCMakeTest.cmake
@@ -1,5 +1,16 @@
include(RunCMake)
+# Detect information from the toolchain:
+# - CMAKE_SYSTEM_NAME
+# - CMAKE_C_COMPILER_ID
+# - CMAKE_C_COMPILER_VERSION
+# - CMAKE_CXX_COMPILER_ID
+# - CMAKE_CXX_COMPILER_VERSION
+run_cmake_with_options(Inspect
+ -DCMake_TEST_Fortran=${CMake_TEST_Fortran}
+ )
+include("${RunCMake_BINARY_DIR}/Inspect-build/info.cmake")
+
run_cmake(BinDirEmpty)
run_cmake(BinDirRelative)
run_cmake(NoOutputVariable)