summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-09-26 13:29:59 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-09-26 13:30:10 (GMT)
commit78317811551166fb74e7f10a9b211214c2f2748a (patch)
treed2b7d506d689a57d19d401b441967dcd08f4c441 /Tests/RunCMake
parent0be496cb5a3bfd643d3c86c59e9ab320f3557cf9 (diff)
parent80df7b174506eb5c7d9db3e65e2ffb59b9e8f16d (diff)
downloadCMake-78317811551166fb74e7f10a9b211214c2f2748a.zip
CMake-78317811551166fb74e7f10a9b211214c2f2748a.tar.gz
CMake-78317811551166fb74e7f10a9b211214c2f2748a.tar.bz2
Merge topic 'lint-genex-empty'
80df7b1745 Linting: Fix empty evaluated genex Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8833
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/MultiLint/RunCMakeTest.cmake1
-rw-r--r--Tests/RunCMake/MultiLint/genex.cmake6
2 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/MultiLint/RunCMakeTest.cmake b/Tests/RunCMake/MultiLint/RunCMakeTest.cmake
index 9b7a6a9..f2df290 100644
--- a/Tests/RunCMake/MultiLint/RunCMakeTest.cmake
+++ b/Tests/RunCMake/MultiLint/RunCMakeTest.cmake
@@ -24,6 +24,7 @@ run_multilint(CXX)
if(NOT RunCMake_GENERATOR STREQUAL "Watcom WMake")
run_multilint(C-launch)
run_multilint(CXX-launch)
+ run_multilint(genex)
endif()
function(run_skip_linting test_name)
diff --git a/Tests/RunCMake/MultiLint/genex.cmake b/Tests/RunCMake/MultiLint/genex.cmake
new file mode 100644
index 0000000..17f9248
--- /dev/null
+++ b/Tests/RunCMake/MultiLint/genex.cmake
@@ -0,0 +1,6 @@
+enable_language(CXX)
+set(CMAKE_CXX_INCLUDE_WHAT_YOU_USE "$<IF:$<BOOL:FALSE>,${PSEUDO_IWYU},>")
+set(CMAKE_CXX_CLANG_TIDY "$<IF:$<BOOL:FALSE>,${PSEUDO_TIDY} --error,>")
+set(CMAKE_CXX_CPPLINT "$<IF:$<BOOL:FALSE>,${PSEUDO_CPPLINT} --error,>")
+set(CMAKE_CXX_CPPCHECK "$<IF:$<BOOL:FALSE>,${PSEUDO_CPPCHECK} -bad,>")
+add_executable(main main.cxx)