forked from enlightenment/efl
Added ElementaryConfigVersion.cmake.in
This commit is contained in:
parent
f8bc84d439
commit
c4af753c5c
|
@ -75,7 +75,9 @@ pkgconfigdir = $(libdir)/pkgconfig
|
|||
pkgconfig_DATA = elementary.pc
|
||||
|
||||
cmakeconfigdir = $(prefix)/share/cmake/Modules
|
||||
cmakeconfig_DATA = cmakeconfig/ElementaryConfig.cmake
|
||||
cmakeconfig_DATA = \
|
||||
cmakeconfig/ElementaryConfig.cmake \
|
||||
cmakeconfig/ElementaryConfigVersion.cmake
|
||||
|
||||
.PHONY: doc screenshots
|
||||
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
set(PACKAGE_VERSION "@VERSION@")
|
||||
|
||||
# Check whether the requested PACKAGE_FIND_VERSION is compatible
|
||||
if ("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
|
||||
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
||||
else ()
|
||||
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
||||
if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
|
||||
set(PACKAGE_VERSION_EXACT TRUE)
|
||||
endif ()
|
||||
endif ()
|
|
@ -829,6 +829,7 @@ config/standard/Makefile
|
|||
config/mobile/Makefile
|
||||
$po_makefile_in
|
||||
cmakeconfig/ElementaryConfig.cmake
|
||||
cmakeconfig/ElementaryConfigVersion.cmake
|
||||
])
|
||||
|
||||
#####################################################################
|
||||
|
|
Loading…
Reference in New Issue