summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeLists.txt
diff options
context:
space:
mode:
authorThomas Bernard <thomas@famillebernardgouriou.fr>2020-10-22 21:06:17 (GMT)
committerBrad King <brad.king@kitware.com>2020-10-28 11:19:31 (GMT)
commitea03f508420845fef72fef06ba4c9a7dacbca5fe (patch)
tree4f81062ce233b38f76f36111b290ae26f53c2906 /Tests/RunCMake/CMakeLists.txt
parentb3f1a292266099865e0896be9fd0d40803bda7e0 (diff)
downloadCMake-ea03f508420845fef72fef06ba4c9a7dacbca5fe.zip
CMake-ea03f508420845fef72fef06ba4c9a7dacbca5fe.tar.gz
CMake-ea03f508420845fef72fef06ba4c9a7dacbca5fe.tar.bz2
llvm_rc: add llvm_rc option filter to correctly pick up all options
Fixes: #21315
Diffstat (limited to 'Tests/RunCMake/CMakeLists.txt')
-rw-r--r--Tests/RunCMake/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index 38ab553..9fc5b69 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -565,7 +565,8 @@ if (CMAKE_SYSTEM_NAME MATCHES "(Linux|Darwin)"
endif()
-add_RunCMake_test(CommandLine -DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME} -DCYGWIN=${CYGWIN} -DPYTHON_EXECUTABLE=${PYTHON_EXECUTABLE})
+add_executable(pseudo_llvm-rc pseudo_llvm-rc.c)
+add_RunCMake_test(CommandLine -DLLVM_RC=$<TARGET_FILE:pseudo_llvm-rc> -DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME} -DCYGWIN=${CYGWIN} -DPYTHON_EXECUTABLE=${PYTHON_EXECUTABLE})
add_RunCMake_test(CommandLineTar)
if(CMAKE_PLATFORM_NO_VERSIONED_SONAME OR (NOT CMAKE_SHARED_LIBRARY_SONAME_FLAG AND NOT CMAKE_SHARED_LIBRARY_SONAME_C_FLAG))