[vlmc-devel] Check for CMake3.1 or higher for command target_compile_features

Ankur Gupta git at videolan.org
Mon Mar 14 21:31:33 CET 2016


vlmc | branch: master | Ankur Gupta <ankur.vision0 at gmail.com> | Sat Mar 12 09:52:59 2016 +0530| [d5dd5ee228a4d109d7f26ee559369e3bb52bae31] | committer: Hugo Beauzée-Luyssen

Check for CMake3.1 or higher for command target_compile_features

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> https://code.videolan.org/videolan/vlmc/commit/d5dd5ee228a4d109d7f26ee559369e3bb52bae31
---

 src/CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 15c5734..73033ab 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -3,7 +3,9 @@
 # Authors: Rohit Yadav <rohityadav89 at gmail.com>
 #          Ludovic Fauvet <etix at vlmc.org>
 #
-
+#check if version will support target_compile_features command
+#to ensure we can use some C++11 featrues
+cmake_minimum_required(VERSION 3.1)
 SET(VLMC_SRCS
     Commands/Commands.cpp
     Backend/IBackend.h



More information about the Vlmc-devel mailing list