*Really* solved the last commit problem :)

This commit is contained in:
Laurent Gomila 2012-01-02 07:47:13 +01:00
parent ab0f84ad3f
commit 88683504ba

View File

@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8)
# define a macro that helps defining an option # define a macro that helps defining an option
macro(sfml_set_option var default type docstring) macro(sfml_set_option var default type docstring)
if(DEFINED ${var}) if(NOT DEFINED ${var})
set(${var} ${default}) set(${var} ${default})
endif() endif()
set(${var} ${${var}} CACHE ${type} ${docstring} FORCE) set(${var} ${${var}} CACHE ${type} ${docstring} FORCE)