diff options
author | Brad King <brad.king@kitware.com> | 2014-04-02 18:44:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-04-02 18:44:35 (GMT) |
commit | 8018fcca6e055a0f12a17fc8324128080a9ec568 (patch) | |
tree | accecb14f80dece735e2822b76ad0c88825149b6 /Tests/Module/FindDependency/packages/Pack3 | |
parent | a41c0a9dcbc201b183bcc0a0c0f6bf9f2cebd079 (diff) | |
parent | 5ada4be81bdb7695b2a4741db76ec66473ccd961 (diff) | |
download | CMake-8018fcca6e055a0f12a17fc8324128080a9ec568.zip CMake-8018fcca6e055a0f12a17fc8324128080a9ec568.tar.gz CMake-8018fcca6e055a0f12a17fc8324128080a9ec568.tar.bz2 |
Merge branch 'master' into revise-compiler-id-policies
Diffstat (limited to 'Tests/Module/FindDependency/packages/Pack3')
-rw-r--r-- | Tests/Module/FindDependency/packages/Pack3/Pack3Config.cmake | 5 | ||||
-rw-r--r-- | Tests/Module/FindDependency/packages/Pack3/Pack3ConfigVersion.cmake | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/Tests/Module/FindDependency/packages/Pack3/Pack3Config.cmake b/Tests/Module/FindDependency/packages/Pack3/Pack3Config.cmake new file mode 100644 index 0000000..25c32f3 --- /dev/null +++ b/Tests/Module/FindDependency/packages/Pack3/Pack3Config.cmake @@ -0,0 +1,5 @@ + +set(PACK3_VAR ON) + +add_library(Pack3::Lib INTERFACE IMPORTED) +set_property(TARGET Pack3::Lib PROPERTY INTERFACE_COMPILE_DEFINITIONS HAVE_PACK3) diff --git a/Tests/Module/FindDependency/packages/Pack3/Pack3ConfigVersion.cmake b/Tests/Module/FindDependency/packages/Pack3/Pack3ConfigVersion.cmake new file mode 100644 index 0000000..870f747 --- /dev/null +++ b/Tests/Module/FindDependency/packages/Pack3/Pack3ConfigVersion.cmake @@ -0,0 +1,11 @@ + +set(PACKAGE_VERSION "1.4") + +if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" ) + set(PACKAGE_VERSION_COMPATIBLE FALSE) +else() + set(PACKAGE_VERSION_COMPATIBLE TRUE) + if( "${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}") + set(PACKAGE_VERSION_EXACT TRUE) + endif() +endif() |