Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Avoid installing stuff under /usr/includes4u/
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 21 Aug 2018 14:46:26 +0000 (16:46 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 21 Aug 2018 14:46:26 +0000 (16:46 +0200)
tools/cmake/Distrib.cmake

index d85418f..5a0fc10 100644 (file)
@@ -67,7 +67,7 @@ endif()
 # include files
 foreach(file ${headers_to_install}  ${generated_headers_to_install})
   get_filename_component(location ${file} PATH)
 # 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()
 
   install(FILES ${file} DESTINATION ${location})
 endforeach()