diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2022-06-28 13:49:36 (GMT) |
---|---|---|
committer | Robert Maynard <rmaynard@nvidia.com> | 2022-06-29 15:50:34 (GMT) |
commit | 2e9ac1d2726c4f260efd6b455242ec5d65391e12 (patch) | |
tree | a181ede8b2b6b83f7263f5aac9a1a6ff7de066ce /Tests/RunCMake/CompileWarningAsError/WerrorOnIgnore.cmake | |
parent | 8c562ece28b7a13ddb734b8c51710ebafe9ac570 (diff) | |
download | CMake-2e9ac1d2726c4f260efd6b455242ec5d65391e12.zip CMake-2e9ac1d2726c4f260efd6b455242ec5d65391e12.tar.gz CMake-2e9ac1d2726c4f260efd6b455242ec5d65391e12.tar.bz2 |
Tests: Refactor warn on error tests to support multiple languages
Diffstat (limited to 'Tests/RunCMake/CompileWarningAsError/WerrorOnIgnore.cmake')
-rw-r--r-- | Tests/RunCMake/CompileWarningAsError/WerrorOnIgnore.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/RunCMake/CompileWarningAsError/WerrorOnIgnore.cmake b/Tests/RunCMake/CompileWarningAsError/WerrorOnIgnore.cmake index 1f7ccdb..847bd78 100644 --- a/Tests/RunCMake/CompileWarningAsError/WerrorOnIgnore.cmake +++ b/Tests/RunCMake/CompileWarningAsError/WerrorOnIgnore.cmake @@ -1,8 +1,8 @@ -enable_language(CXX) +enable_language(${LANGUAGE}) include(WarningAsErrorOptions.cmake) -get_warning_options(warning_options) +get_warning_options(warning_options ${LANGUAGE}) -add_executable(WerrorOn warn.cxx) +add_executable(WerrorOn warn.${EXTENSION}) target_compile_options(WerrorOn PUBLIC "${warning_options}") set_target_properties(WerrorOn PROPERTIES COMPILE_WARNING_AS_ERROR ON) |