Commit 549eedfe authored by Brad King's avatar Brad King
Browse files

Tests: Fix CMP0115 warnings in CompileFeatures test

Pass source file extensions explicitly.
parent b369aee2
......@@ -4,9 +4,12 @@ cmake_policy(SET CMP0057 NEW)
set(ext_C c)
set(ext_CXX cpp)
macro(run_test feature lang)
if (${feature} IN_LIST CMAKE_${lang}_COMPILE_FEATURES)
add_library(test_${feature} OBJECT ${feature})
add_library(test_${feature} OBJECT ${feature}.${ext_${lang}})
set_property(TARGET test_${feature}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment