Open bambams opened 9 years ago
As far as I can tell from the error INSTALL_LIB_DIR is empty for some reason. The error is not very descriptive, but gives a line in the CMakeFile at least.
Maybe try to give it an explicit value via -DINSTALL_LIB_DIR=$path_where_the_library_should_be_installed.
That is what I thought too, but it doesn't seem to be the case:
bash$ vim lib/CMakeLists.txt
bash$ git diff
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index 528f32e..cecf83a 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -30,4 +30,5 @@ INSTALL(FILES misc.h DESTINATION ${INSTALL_INC_DIR}/glyr)
INSTALL(FILES cache.h DESTINATION ${INSTALL_INC_DIR}/glyr)
INSTALL(FILES config.h DESTINATION ${INSTALL_INC_DIR}/glyr)
INSTALL(FILES testing.h DESTINATION ${INSTALL_INC_DIR}/glyr)
+MESSAGE("The value of INSTALL_LIB_DIR is \"${INSTALL_LIB_DIR}\"")
INSTALL(TARGETS glyr LIBRARY DESTINATION ${INSTALL_LIB_DIR})
bash$ cmake -DCMAKE_LEGACY_CYGWIN_WIN32=1 -DCMAKE_INSTALL_PREFIX="$HOME" .
-- Defining WIN32 under Cygwin due to CMAKE_LEGACY_CYGWIN_WIN32
-- Building Target: release
The value of INSTALL_LIB_DIR is "lib"
CMake Error at lib/CMakeLists.txt:34 (INSTALL):
install Library TARGETS given no DESTINATION!
-- Configuring incomplete, errors occurred!
See also "/c/Users/TCAC0108/src/glyr/CMakeFiles/CMakeOutput.log".
For emphasis:
The value of INSTALL_LIB_DIR is "lib"
I'm not sure if this is a cmake version issue or a Cygwin compatibility issue.
(Without -DCMAKE_LEGACY_CYGWIN_WIN32 you are warned also about WIN32 not being defined for Cygwin anymore, but both ways it fails at the same point)
There don't appear to be any actual failures in CMakeOutput.log... At least,
:set ic | /error
has no matches and I don't see anything else that indicates failures...