[cmake-developers] Documented property IMPORTED_LOCATION does not exist

Alan W. Irwin irwin at beluga.phys.uvic.ca
Tue Jan 24 18:25:54 EST 2012


On 2012-01-24 06:28+0100 Michael Wild wrote:

> On 01/24/2012 05:50 AM, Alan W. Irwin wrote:
>> The documentation you get from
>>
>> cmake --help-full
>>
>> refers to the IMPORTED_LOCATION property as one of the more important
>> ones set for imported targets.  I have to agree that location is the
>> most important property for imported targets, but the name appears to
>> be wrong for the documentation of this property!
>>
>> After screwing around for a while trying to use the above
>> property for my imported targets, I discovered (by guessing) that the
>> name of a property that actually does give the location information is
>> IMPORT_LOCATION, not IMPORTED_LOCATION.  For what it is worth,
>> IMPORT_LOCATION works for an imported library, and I haven't tried
>> this on imported executables. (By the way, LOCATION works as well, but
>> that appears from the documentation to be a left-over from CMake 2.4
>> which is why I tried to get IMPORTED_LOCATION to work and when that
>> failed, switched to the currently undocumentated IMPORT_LOCATION.)
>>
>> I find IMPORTED_LOCATION is mentioned in the following
>> places in the cmake-2.8.6 source tree:
>>
>> software at raven> find cmake-2.8.6 -print0 -type f \
>> |xargs -0 grep -l IMPORTED_LOCATION
>> cmake-2.8.6/ChangeLog.txt
>> cmake-2.8.6/Modules/FindQt4.cmake
>> cmake-2.8.6/Tests/ExportImport/Import/A/CMakeLists.txt
>> cmake-2.8.6/Tests/SimpleInstall/CMakeLists.txt
>> cmake-2.8.6/Tests/SimpleInstallS2/CMakeLists.txt
>> cmake-2.8.6/Source/cmTarget.cxx
>> cmake-2.8.6/Source/cmAddExecutableCommand.h
>> cmake-2.8.6/Source/cmAddLibraryCommand.h
>> cmake-2.8.6/Source/cmExportBuildFileGenerator.cxx
>> cmake-2.8.6/Source/cmExportInstallFileGenerator.cxx
>>
>> A similar search for IMPORT_LOCATION found nothing at all!
>>
>> However, I spot-checked cmake-2.8.6/Source/cmTarget.cxx, and all those
>> mentions of IMPORTED_LOCATION appear to be documentation strings
>> rather than executable code, and I was unable to find why
>> IMPORTED_LOCATION does not work for me while IMPORT_LOCATION does. So
>> this needs someone who is familiar with the CMake code to figure out
>> what the actual problem is here, and to decide whether a fix to the
>> documentation strings is all that is required or whether some deeper
>> change needs to be made.
>>
>> Alan
>
> IMPORTED_LOCATION works just fine for me. Also IMPORT_LOCATION, as you
> call it, is not referenced once in the whole CMake source, while
> IMPORTED_LOCATION is, and not only as a documentation string as you
> claim.

Hi Michael:

Thanks for your response.

Since you cannot verify the issue, then the most likely reason is
there is some difference between your and my CMake version, minimum
CMake version (which affects policy decisions), and hardware/software
platform. Could you be more specific about those constraints in your
case?

Just to be sure I was reporting a clean result, I started with a
fresh bootstrap build and install of CMake-2.8.7 that I did on my 
Debian Squeeze platform. I then built and installed PLplot (which
specifies cmake_minimum_required(VERSION 2.8.2 FATAL_ERROR) from
scratch using that version of cmake.

I have attached the resulting export module files that are installed
as a result of that PLplot install.

I then checked imported target properties with the following CMake test script
(which is also attached for convenience).

project(test_export NONE)
cmake_minimum_required(VERSION 2.8.2 FATAL_ERROR)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR} )
include(export_plplot OPTIONAL RESULT_VARIABLE IF_PLOT)
if(IF_PLOT)
   get_target_property(test_loc1 _plplotcmodule IMPORT_LOCATION)
   message(STATUS "IMPORT_LOCATION = ${test_loc1}")
   get_target_property(test_loc2 _plplotcmodule IMPORTED_LOCATION)
   message(STATUS "IMPORTED_LOCATION = ${test_loc2}")
else(IF_PLOT)
   message(WARNING "IF_PLOT = ${IF_PLOT}")
endif(IF_PLOT)

And here was the result when cmake was invoked from a sub-directory
of the one containing the above CMakeLists.txt and the export files.

software at raven> cmake ..
-- IMPORT_LOCATION =
/home/software/plplot_svn/installcmake/lib/python2.6/site-packages/_plplotcmodule.so
-- IMPORTED_LOCATION = test_loc2-NOTFOUND
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/cmake_test/build_dir

Note, _plplotcmodule is one of the shared objects generated by PLplot
for our python bindings, but if you look at the export files, there
doesn't seem to be anything done differently for _plplotcmodule compared
to other PLplot library targets, and also I assure you
the result for IMPORT_LOCATION is correct.

So the above simple script cleanly shows the issue for 2.8.7. 
IMPORT_LOCATION is an imported target property with the correct value
while IMPORTED_LOCATION is not found.

If you try the same test script with the same exported files, do you
get a different result? If you still have trouble verifying the above
result, then please also try CMake-2.8.7 to see whether that version
is the source of the issue.

One obvious possibility is there is something wrong with the attached
PLplot export files.

They are generated by the PLplot build system with, e.g.,

install(
   TARGETS plplot_widgetmodule _plplotcmodule
   EXPORT export_plplot
   LIBRARY
   DESTINATION ${PYTHON_INSTDIR}
   )

which I think is pretty standard so if there is something wrong, it is
probably due to CMake-2.8.7 as well.  However, those export files have
worked fine for years in another context (the build and test of the
PLplot installed examples).  That build and test system does not
explicitly try to obtain IMPORTED_LOCATION (or IMPORT_LOCATION)
properties.  So I only discovered this issue yesterday, when I
actually needed the PLplot python shared object for a completely
different project.  That project as well as the above script clearly
demonstrates the issue.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
-------------- next part --------------
# Generated by CMake 2.8.7

IF("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5)
   MESSAGE(FATAL_ERROR "CMake >= 2.6.0 required")
ENDIF("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5)
CMAKE_POLICY(PUSH)
CMAKE_POLICY(VERSION 2.6)
#----------------------------------------------------------------
# Generated CMake target import file.
#----------------------------------------------------------------

# Commands may need to know the format version.
SET(CMAKE_IMPORT_FILE_VERSION 1)

# Create imported target csirocsa
ADD_LIBRARY(csirocsa SHARED IMPORTED)

# Create imported target csironn
ADD_LIBRARY(csironn SHARED IMPORTED)

# Create imported target qsastime
ADD_LIBRARY(qsastime SHARED IMPORTED)

# Create imported target plplotd
ADD_LIBRARY(plplotd SHARED IMPORTED)

# Create imported target plplotcxxd
ADD_LIBRARY(plplotcxxd SHARED IMPORTED)

# Create imported target plplotf95cd
ADD_LIBRARY(plplotf95cd SHARED IMPORTED)

# Create imported target plplotf95d
ADD_LIBRARY(plplotf95d SHARED IMPORTED)

# Create imported target tclmatrixd
ADD_LIBRARY(tclmatrixd SHARED IMPORTED)

# Create imported target plplottcltkd
ADD_LIBRARY(plplottcltkd SHARED IMPORTED)

# Create imported target plserver
ADD_EXECUTABLE(plserver IMPORTED)

# Create imported target plplot_widgetmodule
ADD_LIBRARY(plplot_widgetmodule MODULE IMPORTED)

# Create imported target _plplotcmodule
ADD_LIBRARY(_plplotcmodule MODULE IMPORTED)

# Create imported target plplot_octave
ADD_LIBRARY(plplot_octave MODULE IMPORTED)

# Create imported target plplotwxwidgetsd
ADD_LIBRARY(plplotwxwidgetsd SHARED IMPORTED)

# Create imported target plplotadad
ADD_LIBRARY(plplotadad SHARED IMPORTED)

# Create imported target plplotdmdd
ADD_LIBRARY(plplotdmdd STATIC IMPORTED)

# Create imported target plplotluac
ADD_LIBRARY(plplotluac MODULE IMPORTED)

# Create imported target plplotqtd
ADD_LIBRARY(plplotqtd SHARED IMPORTED)

# Create imported target plplot_pyqt4
ADD_LIBRARY(plplot_pyqt4 MODULE IMPORTED)

# Create imported target cairo
ADD_LIBRARY(cairo MODULE IMPORTED)

# Create imported target qt
ADD_LIBRARY(qt MODULE IMPORTED)

# Create imported target mem
ADD_LIBRARY(mem MODULE IMPORTED)

# Create imported target null
ADD_LIBRARY(null MODULE IMPORTED)

# Create imported target ps
ADD_LIBRARY(ps MODULE IMPORTED)

# Create imported target psttf
ADD_LIBRARY(psttf MODULE IMPORTED)

# Create imported target svg
ADD_LIBRARY(svg MODULE IMPORTED)

# Create imported target tk
ADD_LIBRARY(tk MODULE IMPORTED)

# Create imported target tkwin
ADD_LIBRARY(tkwin MODULE IMPORTED)

# Create imported target wxwidgets
ADD_LIBRARY(wxwidgets MODULE IMPORTED)

# Create imported target xfig
ADD_LIBRARY(xfig MODULE IMPORTED)

# Create imported target xwin
ADD_LIBRARY(xwin MODULE IMPORTED)

# Create imported target pltcl
ADD_EXECUTABLE(pltcl IMPORTED)

# Create imported target plf95demolibd
ADD_LIBRARY(plf95demolibd STATIC IMPORTED)

# Load information for each installed configuration.
GET_FILENAME_COMPONENT(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
FILE(GLOB CONFIG_FILES "${_DIR}/export_plplot-*.cmake")
FOREACH(f ${CONFIG_FILES})
  INCLUDE(${f})
ENDFOREACH(f)

# Commands beyond this point should not need to know the version.
SET(CMAKE_IMPORT_FILE_VERSION)
CMAKE_POLICY(POP)
-------------- next part --------------
#----------------------------------------------------------------
# Generated CMake target import file for configuration "".
#----------------------------------------------------------------

# Commands may need to know the format version.
SET(CMAKE_IMPORT_FILE_VERSION 1)

# Import target "csirocsa" for configuration ""
SET_PROPERTY(TARGET csirocsa APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(csirocsa PROPERTIES
  IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG "/usr/lib/libm.so"
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/libcsirocsa.so.0.0.1"
  IMPORTED_SONAME_NOCONFIG "libcsirocsa.so.0"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS csirocsa )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_csirocsa "/home/software/plplot_svn/installcmake/lib/libcsirocsa.so.0.0.1" )

# Import target "csironn" for configuration ""
SET_PROPERTY(TARGET csironn APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(csironn PROPERTIES
  IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG "/home/software/qhull/install/lib/libqhull.so"
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/libcsironn.so.0.0.1"
  IMPORTED_SONAME_NOCONFIG "libcsironn.so.0"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS csironn )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_csironn "/home/software/plplot_svn/installcmake/lib/libcsironn.so.0.0.1" )

# Import target "qsastime" for configuration ""
SET_PROPERTY(TARGET qsastime APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(qsastime PROPERTIES
  IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG "/usr/lib/libm.so"
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/libqsastime.so.0.0.1"
  IMPORTED_SONAME_NOCONFIG "libqsastime.so.0"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS qsastime )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_qsastime "/home/software/plplot_svn/installcmake/lib/libqsastime.so.0.0.1" )

# Import target "plplotd" for configuration ""
SET_PROPERTY(TARGET plplotd APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(plplotd PROPERTIES
  IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG "/usr/lib/libltdl.so;/usr/lib/libdl.so;/usr/lib/libm.so;csirocsa;csironn;qsastime;/usr/lib/libfreetype.so"
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/libplplotd.so.11.0.0"
  IMPORTED_SONAME_NOCONFIG "libplplotd.so.11"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS plplotd )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_plplotd "/home/software/plplot_svn/installcmake/lib/libplplotd.so.11.0.0" )

# Import target "plplotcxxd" for configuration ""
SET_PROPERTY(TARGET plplotcxxd APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(plplotcxxd PROPERTIES
  IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG "plplotd"
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/libplplotcxxd.so.10.0.0"
  IMPORTED_SONAME_NOCONFIG "libplplotcxxd.so.10"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS plplotcxxd )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_plplotcxxd "/home/software/plplot_svn/installcmake/lib/libplplotcxxd.so.10.0.0" )

# Import target "plplotf95cd" for configuration ""
SET_PROPERTY(TARGET plplotf95cd APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(plplotf95cd PROPERTIES
  IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG "plplotd"
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/libplplotf95cd.so.9.1.1"
  IMPORTED_SONAME_NOCONFIG "libplplotf95cd.so.9"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS plplotf95cd )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_plplotf95cd "/home/software/plplot_svn/installcmake/lib/libplplotf95cd.so.9.1.1" )

# Import target "plplotf95d" for configuration ""
SET_PROPERTY(TARGET plplotf95d APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(plplotf95d PROPERTIES
  IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG "plplotf95cd"
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/libplplotf95d.so.9.1.1"
  IMPORTED_SONAME_NOCONFIG "libplplotf95d.so.9"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS plplotf95d )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_plplotf95d "/home/software/plplot_svn/installcmake/lib/libplplotf95d.so.9.1.1" )

# Import target "tclmatrixd" for configuration ""
SET_PROPERTY(TARGET tclmatrixd APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(tclmatrixd PROPERTIES
  IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG "/usr/lib/libtcl8.5.so"
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/libtclmatrixd.so.9.2.0"
  IMPORTED_SONAME_NOCONFIG "libtclmatrixd.so.9"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS tclmatrixd )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_tclmatrixd "/home/software/plplot_svn/installcmake/lib/libtclmatrixd.so.9.2.0" )

# Import target "plplottcltkd" for configuration ""
SET_PROPERTY(TARGET plplottcltkd APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(plplottcltkd PROPERTIES
  IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG "tclmatrixd;plplotd;/usr/lib/libtcl8.5.so;/usr/lib/libitcl3.4.so;/usr/lib/libtk8.5.so;/usr/lib/libitk3.3.so"
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/libplplottcltkd.so.9.2.0"
  IMPORTED_SONAME_NOCONFIG "libplplottcltkd.so.9"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS plplottcltkd )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_plplottcltkd "/home/software/plplot_svn/installcmake/lib/libplplottcltkd.so.9.2.0" )

# Import target "plserver" for configuration ""
SET_PROPERTY(TARGET plserver APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(plserver PROPERTIES
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/bin/plserver"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS plserver )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_plserver "/home/software/plplot_svn/installcmake/bin/plserver" )

# Import target "plplot_widgetmodule" for configuration ""
SET_PROPERTY(TARGET plplot_widgetmodule APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(plplot_widgetmodule PROPERTIES
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/python2.6/site-packages/plplot_widgetmodule.so"
  IMPORTED_SONAME_NOCONFIG "plplot_widgetmodule.so"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS plplot_widgetmodule )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_plplot_widgetmodule "/home/software/plplot_svn/installcmake/lib/python2.6/site-packages/plplot_widgetmodule.so" )

# Import target "_plplotcmodule" for configuration ""
SET_PROPERTY(TARGET _plplotcmodule APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(_plplotcmodule PROPERTIES
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/python2.6/site-packages/_plplotcmodule.so"
  IMPORTED_SONAME_NOCONFIG "_plplotcmodule.so"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS _plplotcmodule )
LIST(APPEND _IMPORT_CHECK_FILES_FOR__plplotcmodule "/home/software/plplot_svn/installcmake/lib/python2.6/site-packages/_plplotcmodule.so" )

# Import target "plplot_octave" for configuration ""
SET_PROPERTY(TARGET plplot_octave APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(plplot_octave PROPERTIES
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/share/plplot_octave/plplot_octave.oct"
  IMPORTED_SONAME_NOCONFIG "plplot_octave.oct"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS plplot_octave )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_plplot_octave "/home/software/plplot_svn/installcmake/share/plplot_octave/plplot_octave.oct" )

# Import target "plplotwxwidgetsd" for configuration ""
SET_PROPERTY(TARGET plplotwxwidgetsd APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(plplotwxwidgetsd PROPERTIES
  IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG "plplotcxxd;-pthread;/usr/lib/libwx_baseu-2.8.so;/usr/lib/libwx_gtk2u_core-2.8.so"
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/libplplotwxwidgetsd.so.0.0.0"
  IMPORTED_SONAME_NOCONFIG "libplplotwxwidgetsd.so.0"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS plplotwxwidgetsd )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_plplotwxwidgetsd "/home/software/plplot_svn/installcmake/lib/libplplotwxwidgetsd.so.0.0.0" )

# Import target "plplotadad" for configuration ""
SET_PROPERTY(TARGET plplotadad APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(plplotadad PROPERTIES
  IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG "plplotd;/usr/lib/libgnat.so"
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/libplplotadad.so.0.0.0"
  IMPORTED_SONAME_NOCONFIG "libplplotadad.so.0"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS plplotadad )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_plplotadad "/home/software/plplot_svn/installcmake/lib/libplplotadad.so.0.0.0" )

# Import target "plplotdmdd" for configuration ""
SET_PROPERTY(TARGET plplotdmdd APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(plplotdmdd PROPERTIES
  IMPORTED_LINK_INTERFACE_LANGUAGES_NOCONFIG "D"
  IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG "plplotd"
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/libplplotdmdd.a"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS plplotdmdd )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_plplotdmdd "/home/software/plplot_svn/installcmake/lib/libplplotdmdd.a" )

# Import target "plplotluac" for configuration ""
SET_PROPERTY(TARGET plplotluac APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(plplotluac PROPERTIES
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/lua/5.1/plplot/plplotluac.so"
  IMPORTED_SONAME_NOCONFIG "plplotluac.so"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS plplotluac )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_plplotluac "/home/software/plplot_svn/installcmake/lib/lua/5.1/plplot/plplotluac.so" )

# Import target "plplotqtd" for configuration ""
SET_PROPERTY(TARGET plplotqtd APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(plplotqtd PROPERTIES
  IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG "plplotd;/usr/lib/libm.so;/usr/lib/libQtSvg.so;/usr/lib/libQtGui.so;/usr/lib/libQtXml.so;/usr/lib/libQtCore.so"
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/libplplotqtd.so.0.0.1"
  IMPORTED_SONAME_NOCONFIG "libplplotqtd.so.0"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS plplotqtd )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_plplotqtd "/home/software/plplot_svn/installcmake/lib/libplplotqtd.so.0.0.1" )

# Import target "plplot_pyqt4" for configuration ""
SET_PROPERTY(TARGET plplot_pyqt4 APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(plplot_pyqt4 PROPERTIES
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/python2.6/site-packages/plplot_pyqt4.so"
  IMPORTED_SONAME_NOCONFIG "plplot_pyqt4.so"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS plplot_pyqt4 )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_plplot_pyqt4 "/home/software/plplot_svn/installcmake/lib/python2.6/site-packages/plplot_pyqt4.so" )

# Import target "cairo" for configuration ""
SET_PROPERTY(TARGET cairo APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(cairo PROPERTIES
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/cairo.so"
  IMPORTED_SONAME_NOCONFIG "cairo.so"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS cairo )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_cairo "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/cairo.so" )

# Import target "qt" for configuration ""
SET_PROPERTY(TARGET qt APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(qt PROPERTIES
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/qt.so"
  IMPORTED_SONAME_NOCONFIG "qt.so"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS qt )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_qt "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/qt.so" )

# Import target "mem" for configuration ""
SET_PROPERTY(TARGET mem APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(mem PROPERTIES
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/mem.so"
  IMPORTED_SONAME_NOCONFIG "mem.so"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS mem )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_mem "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/mem.so" )

# Import target "null" for configuration ""
SET_PROPERTY(TARGET null APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(null PROPERTIES
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/null.so"
  IMPORTED_SONAME_NOCONFIG "null.so"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS null )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_null "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/null.so" )

# Import target "ps" for configuration ""
SET_PROPERTY(TARGET ps APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(ps PROPERTIES
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/ps.so"
  IMPORTED_SONAME_NOCONFIG "ps.so"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS ps )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_ps "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/ps.so" )

# Import target "psttf" for configuration ""
SET_PROPERTY(TARGET psttf APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(psttf PROPERTIES
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/psttf.so"
  IMPORTED_SONAME_NOCONFIG "psttf.so"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS psttf )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_psttf "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/psttf.so" )

# Import target "svg" for configuration ""
SET_PROPERTY(TARGET svg APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(svg PROPERTIES
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/svg.so"
  IMPORTED_SONAME_NOCONFIG "svg.so"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS svg )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_svg "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/svg.so" )

# Import target "tk" for configuration ""
SET_PROPERTY(TARGET tk APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(tk PROPERTIES
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/tk.so"
  IMPORTED_SONAME_NOCONFIG "tk.so"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS tk )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_tk "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/tk.so" )

# Import target "tkwin" for configuration ""
SET_PROPERTY(TARGET tkwin APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(tkwin PROPERTIES
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/tkwin.so"
  IMPORTED_SONAME_NOCONFIG "tkwin.so"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS tkwin )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_tkwin "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/tkwin.so" )

# Import target "wxwidgets" for configuration ""
SET_PROPERTY(TARGET wxwidgets APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(wxwidgets PROPERTIES
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/wxwidgets.so"
  IMPORTED_SONAME_NOCONFIG "wxwidgets.so"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS wxwidgets )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_wxwidgets "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/wxwidgets.so" )

# Import target "xfig" for configuration ""
SET_PROPERTY(TARGET xfig APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(xfig PROPERTIES
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/xfig.so"
  IMPORTED_SONAME_NOCONFIG "xfig.so"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS xfig )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_xfig "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/xfig.so" )

# Import target "xwin" for configuration ""
SET_PROPERTY(TARGET xwin APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(xwin PROPERTIES
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/xwin.so"
  IMPORTED_SONAME_NOCONFIG "xwin.so"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS xwin )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_xwin "/home/software/plplot_svn/installcmake/lib/plplot5.9.9/driversd/xwin.so" )

# Import target "pltcl" for configuration ""
SET_PROPERTY(TARGET pltcl APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(pltcl PROPERTIES
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/bin/pltcl"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS pltcl )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_pltcl "/home/software/plplot_svn/installcmake/bin/pltcl" )

# Import target "plf95demolibd" for configuration ""
SET_PROPERTY(TARGET plf95demolibd APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
SET_TARGET_PROPERTIES(plf95demolibd PROPERTIES
  IMPORTED_LINK_INTERFACE_LANGUAGES_NOCONFIG "Fortran"
  IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG "plplotf95d"
  IMPORTED_LOCATION_NOCONFIG "/home/software/plplot_svn/installcmake/lib/libplf95demolibd.a"
  )

LIST(APPEND _IMPORT_CHECK_TARGETS plf95demolibd )
LIST(APPEND _IMPORT_CHECK_FILES_FOR_plf95demolibd "/home/software/plplot_svn/installcmake/lib/libplf95demolibd.a" )

# Loop over all imported files and verify that they actually exist
FOREACH(target ${_IMPORT_CHECK_TARGETS} )
  FOREACH(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
    IF(NOT EXISTS "${file}" )
      MESSAGE(FATAL_ERROR "The imported target \"${target}\" references the file
   \"${file}\"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   \"${CMAKE_CURRENT_LIST_FILE}\"
but not all the files it references.
")
    ENDIF()
  ENDFOREACH()
  UNSET(_IMPORT_CHECK_FILES_FOR_${target})
ENDFOREACH()
UNSET(_IMPORT_CHECK_TARGETS)

# Commands beyond this point should not need to know the version.
SET(CMAKE_IMPORT_FILE_VERSION)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20120124/6aca2c52/attachment-0002.txt>


More information about the cmake-developers mailing list