Solved problem with last commit

This commit is contained in:
Laurent Gomila 2012-01-02 07:45:33 +01:00
parent 9d0a0fe3f2
commit ab0f84ad3f

View File

@ -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)