From 6091456986b5ee1fbc7020508eb03872b72ee07e Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Mon, 7 Dec 2009 15:56:15 +0100 Subject: [PATCH] Deal with empty elements in LIB_DEPENDS list (in some older 2.6 version empty element produces a warning) --- scripts/install_scripts.cmake.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install_scripts.cmake.in b/scripts/install_scripts.cmake.in index 6e43e726be5..25c2f0f237f 100644 --- a/scripts/install_scripts.cmake.in +++ b/scripts/install_scripts.cmake.in @@ -1,3 +1,5 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR) + SET(CMAKE_SYSTEM_NAME @CMAKE_SYSTEM_NAME@) SET(UNIX @UNIX@) SET(WIN32 @WIN32@) @@ -88,6 +90,7 @@ ENDIF() # mysqlclient library (add -l stuff) SET(CLIENT_LIBS "") SET(LIBS "") +LIST(REMOVE_ITEM mysqlclient_LIB_DEPENDS "") LIST(REMOVE_DUPLICATES mysqlclient_LIB_DEPENDS) FOREACH(lib ${mysqlclient_LIB_DEPENDS}) # Filter out "general", it is not a library, just CMake hint