[CMake] cmake xdress on cygwin fails with "install Library TARGETS given no DESTINATION"

Alexander Eisenhuth ae at stacom-software.de
Tue Jun 25 10:16:58 EDT 2013


Hello all together,

I hope that this is the correct mailing list for my issue.

I've to say that I'm a novice in cmake.

I tried to "cmake xdress" (http://xdress.org/) under cygwin, but if 
failed. Below I've the CMakeLists.txt of a specific subdirectory (src) 
and the error. I figured out that it failed at the line:
    install_lib(cdevice)

As the project builds fine under Linux, there must be something special 
how cmake treats cygwin (or windows).

What does "install Library TARGETS given no DESTINATION!" mean?

I've also posted the question on the xdress, but the maintainer has no 
access to windows

See also the cmake files at:
- https://github.com/xdress/xdress/tree/master/tests
- https://github.com/xdress/xdress/tree/master/tests/src

Any help is very welcome?

Alexander

====== CMakeLists.txt of src =========
set(XDTEST_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR} ${XDTEST_INCLUDE_DIRS}
     PARENT_SCOPE)

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

# device
add_library(cdevice device.c)
set_target_properties(cdevice PROPERTIES
                       LIBRARY_OUTPUT_DIRECTORY 
"${CMAKE_BINARY_DIR}/xdtest/lib")
install_lib(cdevice)

...

===== stderr =====
-- PYTHON_EXECUTABLE: /usr/bin/python2.7
-- XDTEST platform defined as: __LINUX__
XDRESS TESTS

-- CMake Install Prefix: /usr/local
-- RPATH: $ORIGIN/lib
-- NUMPY_VERSION_STRING = 1.6.2
-- Is CI: OFF
CMake Error at cmake/XdtestMacros.cmake:30 (install):
   install Library TARGETS given no DESTINATION!
Call Stack (most recent call first):
   src/CMakeLists.txt:10 (install_lib)


CMake Error at cmake/XdtestMacros.cmake:30 (install):
   install Library TARGETS given no DESTINATION!
Call Stack (most recent call first):
   src/CMakeLists.txt:17 (install_lib)


CMake Error at cmake/XdtestMacros.cmake:30 (install):
   install Library TARGETS given no DESTINATION!
Call Stack (most recent call first):
   src/CMakeLists.txt:24 (install_lib)


CMake Error at cmake/XdtestMacros.cmake:30 (install):
   install Library TARGETS given no DESTINATION!
Call Stack (most recent call first):
   src/CMakeLists.txt:31 (install_lib)


CMake Error at cmake/XdtestMacros.cmake:30 (install):
   install Library TARGETS given no DESTINATION!
Call Stack (most recent call first):
   src/CMakeLists.txt:39 (install_lib)


CMake Error at cmake/XdtestMacros.cmake:30 (install):
   install Library TARGETS given no DESTINATION!
Call Stack (most recent call first):
   src/CMakeLists.txt:46 (install_lib)



More information about the CMake mailing list