FUNCTION(SanitizeBool VAR)
	STRING(TOLOWER "${${VAR}}" VALUE)
	IF(VALUE STREQUAL "on")
		SET(${VAR} "ON" PARENT_SCOPE)
	ELSEIF(VALUE STREQUAL "yes")
		SET(${VAR} "ON" PARENT_SCOPE)
	ELSEIF(VALUE STREQUAL "true")
		SET(${VAR} "ON" PARENT_SCOPE)
	ELSEIF(VALUE STREQUAL "1")
		SET(${VAR} "ON" PARENT_SCOPE)
	ELSEIF(VALUE STREQUAL "off")
		SET(${VAR} "OFF" PARENT_SCOPE)
	ELSEIF(VALUE STREQUAL "no")
		SET(${VAR} "OFF" PARENT_SCOPE)
	ELSEIF(VALUE STREQUAL "false")
		SET(${VAR} "OFF" PARENT_SCOPE)
	ELSEIF(VALUE STREQUAL "0")
		SET(${VAR} "OFF" PARENT_SCOPE)
	ENDIF()
ENDFUNCTION()
