summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorOrkun Tokdemir <ilhanorkuntokdemir@gmail.com>2023-06-02 13:54:18 (GMT)
committerOrkun Tokdemir <ilhanorkuntokdemir@gmail.com>2023-06-02 13:55:47 (GMT)
commit3e462202a7caaf2dffb9ec04756f80577b7f4335 (patch)
treec9c7191d66d31e0d50ea7904dfe5253943a7a2c7 /Tests
parenta67743392b45b7defa479055bdb24f32646433ed (diff)
downloadCMake-3e462202a7caaf2dffb9ec04756f80577b7f4335.zip
CMake-3e462202a7caaf2dffb9ec04756f80577b7f4335.tar.gz
CMake-3e462202a7caaf2dffb9ec04756f80577b7f4335.tar.bz2
Test: Generate pseudo linters generator independent
Fixes: #24968
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index 3997a74..d4f3341 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -865,6 +865,12 @@ add_RunCMake_test(CrosscompilingEmulator
-DPSEUDO_EMULATOR=$<TARGET_FILE:pseudo_emulator>
-DPSEUDO_EMULATOR_CUSTOM_COMMAND=$<TARGET_FILE:pseudo_emulator_custom_command>
-DPSEUDO_EMULATOR_CUSTOM_COMMAND_ARG=$<TARGET_FILE:pseudo_emulator_custom_command_arg>)
+
+add_executable(pseudo_tidy pseudo_tidy.c)
+add_executable(pseudo_iwyu pseudo_iwyu.c)
+add_executable(pseudo_cpplint pseudo_cpplint.c)
+add_executable(pseudo_cppcheck pseudo_cppcheck.c)
+
if("${CMAKE_GENERATOR}" MATCHES "Make|Ninja")
if(UNIX AND NOT CYGWIN)
execute_process(COMMAND ldd --help
@@ -875,10 +881,6 @@ if("${CMAKE_GENERATOR}" MATCHES "Make|Ninja")
add_RunCMake_test(LinkWhatYouUse)
endif()
endif()
- add_executable(pseudo_tidy pseudo_tidy.c)
- add_executable(pseudo_iwyu pseudo_iwyu.c)
- add_executable(pseudo_cpplint pseudo_cpplint.c)
- add_executable(pseudo_cppcheck pseudo_cppcheck.c)
add_RunCMake_test(ClangTidy -DPSEUDO_TIDY=$<TARGET_FILE:pseudo_tidy>)
add_RunCMake_test(IncludeWhatYouUse -DPSEUDO_IWYU=$<TARGET_FILE:pseudo_iwyu>)
add_RunCMake_test(Cpplint -DPSEUDO_CPPLINT=$<TARGET_FILE:pseudo_cpplint>)