File: 010-update-doc-location-no-version-generation

package info (click to toggle)
toulbar2 1.2.1%2Bdfsg-0.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 30,876 kB
  • sloc: cpp: 72,466; python: 1,477; ansic: 391; xml: 72; sh: 54; awk: 50; makefile: 48
file content (28 lines) | stat: -rw-r--r-- 1,555 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -283,9 +283,9 @@
     TARGET_LINK_LIBRARIES(toulbar2${EXE} PUBLIC "-static")
   ENDIF(STATIC)
   ADD_LIBRARY(tb2-archive STATIC $<TARGET_OBJECTS:tb2-objects>)
-  ADD_CUSTOM_TARGET(gen_version ALL /bin/sh ${CMAKE_CURRENT_SOURCE_DIR}/cmake-script/genVersionFile.sh)
-  SET_SOURCE_FILES_PROPERTIES(ToulbarVersion.hpp PROPERTIES GENERATED 1)
-  ADD_DEPENDENCIES(toulbar2${EXE} gen_version)
+#  ADD_CUSTOM_TARGET(gen_version ALL /bin/sh ${CMAKE_CURRENT_SOURCE_DIR}/cmake-script/genVersionFile.sh)
+#  SET_SOURCE_FILES_PROPERTIES(ToulbarVersion.hpp PROPERTIES GENERATED 1)
+#  ADD_DEPENDENCIES(toulbar2${EXE} gen_version)
   IF(MPI)
     TARGET_LINK_LIBRARIES(toulbar2${EXE} PUBLIC ${all_depends} ${MPI_LIBRARIES} ${Boost_LIBRARIES})
     IF(MPI_COMPILE_FLAGS)
@@ -437,9 +437,9 @@
 file(GLOB pdf_doc_files "doc/*.pdf*")
 file(GLOB txt_doc_files "doc/*.txt*")
 file(GLOB html_doc_files "doc/*.html*")
-install(FILES ${pdf_doc_files} DESTINATION ${doc_destination}/${Toulbar2_NAME}-doc)
-install(FILES ${txt_doc_files} DESTINATION ${doc_destination}/${Toulbar2_NAME}-doc)
-install(FILES ${html_doc_files} DESTINATION ${doc_destination}/${Toulbar2_NAME}-doc)
+install(FILES ${pdf_doc_files} DESTINATION ${doc_destination}/toulbar2-doc)
+install(FILES ${txt_doc_files} DESTINATION ${doc_destination}/toulbar2-doc)
+install(FILES ${html_doc_files} DESTINATION ${doc_destination}/toulbar2-doc)
 
 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/toulbar2.1 DESTINATION share/man/man1)
 ##########################################