CMake: Use the new USES_TERMINAL option for test suite targets when available.
[oota-llvm.git] / CMakeLists.txt
index f2b3d32614804741c3b761e9d1e931683c9595e4..e3ddb267966352299bcb78a73ed604d0c3181199 100644 (file)
@@ -16,6 +16,12 @@ else()
   endif()
 endif()
 
+if(CMAKE_VERSION VERSION_LESS 3.1.20141117)
+  set(cmake_3_2_USES_TERMINAL)
+else()
+  set(cmake_3_2_USES_TERMINAL USES_TERMINAL)
+endif()
+
 project(LLVM)
 
 # Add path for custom modules