63e186a8e6
The previous change to test finding in lib/cmake/<name>* weakened the versioned find tests. Since the lib/cmake paths are searched before lib/<name>* paths the previous change skipped requiring the command to ignore zot-3.0 when finding zot-3.1. This change restores that and adds zot-4.0 to test the lib/cmake path.
9 lines
281 B
CMake
9 lines
281 B
CMake
SET(PACKAGE_VERSION 3.1)
|
|
IF("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL 3)
|
|
SET(PACKAGE_VERSION_COMPATIBLE 1)
|
|
IF("${PACKAGE_FIND_VERSION_MINOR}" EQUAL 1)
|
|
SET(PACKAGE_VERSION_EXACT 1)
|
|
ENDIF("${PACKAGE_FIND_VERSION_MINOR}" EQUAL 1)
|
|
ENDIF("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL 3)
|
|
|