[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.17 1.18

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Sep 1 14:05:43 EDT 2009


Update of /cvsroot/CMake/CMake/Tests/FindPackageTest
In directory public:/mounts/ram/cvs-serv28360/Tests/FindPackageTest

Modified Files:
	CMakeLists.txt 
Log Message:
Test the user package registry

We teach the FindPackageTest to build a sample project that stores its
build tree in the user package registry using export(PACKAGE), and then
find it with find_package.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/FindPackageTest/CMakeLists.txt,v
retrieving revision 1.17
retrieving revision 1.18
diff -C 2 -d -r1.17 -r1.18
*** CMakeLists.txt	14 Jan 2009 14:34:42 -0000	1.17
--- CMakeLists.txt	1 Sep 2009 18:05:41 -0000	1.18
***************
*** 181,182 ****
--- 181,195 ----
    MESSAGE(SEND_ERROR "1.2 VERSION_EQUAL 1.2.0.0 is not true!")
  ENDIF()
+ 
+ #-----------------------------------------------------------------------------
+ # Test export(PACKAGE) with find_package.
+ MESSAGE(STATUS "Preparing export(PACKAGE) test project")
+ TRY_COMPILE(EXPORTER_COMPILED
+   ${FindPackageTest_BINARY_DIR}/Exporter
+   ${FindPackageTest_SOURCE_DIR}/Exporter
+   CMakeTestExportPackage dummy
+   OUTPUT_VARIABLE output)
+ MESSAGE(STATUS "Searching for export(PACKAGE) test project")
+ SET(CMakeTestExportPackage_DIR "" CACHE FILEPATH
+   "Wipe out find results for testing." FORCE)
+ FIND_PACKAGE(CMakeTestExportPackage 1.${CMAKE_VERSION} EXACT REQUIRED)



More information about the Cmake-commits mailing list