Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert "Avoid installing stuff under /usr/includes4u/"
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 22 Aug 2018 20:44:16 +0000 (22:44 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 22 Aug 2018 20:44:23 +0000 (22:44 +0200)
With this commit, it now work with CMAKE_INSTALL_PREFIX=/usr but does
not seem to work anymore with CMAKE_INSTALL_PREFIX=/usr/ that was used
earlier. So, move back to the previous bug until we find a solution
working in both cases.

This reverts commit 444729e5a96f255d25524754cf0b6c11a057e6b6.

tools/cmake/Distrib.cmake

index 5a0fc10..d85418f 100644 (file)
@@ -67,7 +67,7 @@ endif()
 # include files
 foreach(file ${headers_to_install}  ${generated_headers_to_install})
   get_filename_component(location ${file} PATH)
-  string(REPLACE "${CMAKE_CURRENT_BINARY_DIR}" "" location "${location}")
+  string(REPLACE "${CMAKE_CURRENT_BINARY_DIR}/" "" location "${location}")
   install(FILES ${file} DESTINATION ${location})
 endforeach()