]> git.jsancho.org Git - lugaru.git/commitdiff
Set CMP0004 policy to OLD
authorNeal Gompa <ngompa13@gmail.com>
Fri, 18 Nov 2016 23:42:26 +0000 (18:42 -0500)
committerNeal Gompa <ngompa13@gmail.com>
Fri, 18 Nov 2016 23:42:26 +0000 (18:42 -0500)
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

index 822300db2c643b49408a60b363e230b70d9c0edb..62531a933f0a708099953bbaeb1d15ed90abc265 100644 (file)
@@ -1,6 +1,7 @@
 project(lugaru)
 
 cmake_minimum_required(VERSION 3.5)
+cmake_policy(SET CMP0004 OLD)
 
 INCLUDE(FindPkgConfig)