From ab0f84ad3feed406a6ee7742ba77befb45d1c1b2 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Mon, 2 Jan 2012 07:45:33 +0100 Subject: [PATCH] Solved problem with last commit --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bcc9b574..8372d6f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8) # define a macro that helps defining an option macro(sfml_set_option var default type docstring) - if(NOT ${var}) + if(DEFINED ${var}) set(${var} ${default}) endif() set(${var} ${${var}} CACHE ${type} ${docstring} FORCE)