set(PACKAGE_VERSION "1.5.1")

if(NOT PACKAGE_FIND_VERSION)
	set(PACKAGE_VERSION_COMPATIBLE 1)
else()
	string(REGEX REPLACE "\\..*$" ""
		_objfw_version_major ${PACKAGE_VERSION})

	if(NOT PACKAGE_FIND_VERSION_MAJOR EQUAL ${_objfw_version_major})
		set(PACKAGE_VERSION_COMPATIBLE FALSE)
	elseif(PACKAGE_FIND_VERSION VERSION_EQUAL ${PACKAGE_VERSION})
		set(PACKAGE_VERSION_EXACT TRUE)
	elseif(PACKAGE_FIND_VERSION VERSION_LESS ${PACKAGE_VERSION})
		set(PACKAGE_VERSION_COMPATIBLE TRUE)
	endif()
endif()
