Permalink
Browse files

CMake: let file(MAKE_DIRECTORY) create all directories at once

  • Loading branch information...
DerDakon authored and Rolf Eike Beer committed Oct 20, 2017
1 parent 975fb19 commit 0d7be027a6fea2ac198dded58f8b55cda1bbe962
Showing with 5 additions and 5 deletions.
  1. +3 −3 doc/CMakeLists.txt
  2. +2 −2 examples/CMakeLists.txt
View
@@ -87,9 +87,9 @@ set(DOC_FILES
)
file(GLOB LANG_FILES "${TOP}/src/translator_??.h")
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/man)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/src)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/doc)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/man
${PROJECT_BINARY_DIR}/src
${PROJECT_BINARY_DIR}/doc)
file(COPY ${TOP}/VERSION DESTINATION ${PROJECT_BINARY_DIR}/)
file(COPY ${TOP}/src/translator.h DESTINATION ${PROJECT_BINARY_DIR}/src/)
View
@@ -1,7 +1,7 @@
if (build_doc)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/examples)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/html/examples)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/examples
${PROJECT_BINARY_DIR}/html/examples)
file(GLOB EXAMPLE_FILES RELATIVE ${CMAKE_SOURCE_DIR}/examples "*")
if (DOT)

0 comments on commit 0d7be02

Please sign in to comment.