From b461f4a69c17073d5c576d24e48b1b59c0d3c932 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Fri, 18 Nov 2016 18:42:26 -0500 Subject: [PATCH] Set CMP0004 policy to OLD This means CMake will silently strip leading and trailing whitespace returned in variables used for defining link libraries. This is necessary because SDL2's config file returns trailing whitespaces in variables. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 822300d..62531a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,7 @@ project(lugaru) cmake_minimum_required(VERSION 3.5) +cmake_policy(SET CMP0004 OLD) INCLUDE(FindPkgConfig) -- 2.39.2