Skip to content

Commit

Permalink
CMake: let file(MAKE_DIRECTORY) create all directories at once
Browse files Browse the repository at this point in the history
  • Loading branch information
DerDakon authored and Rolf Eike Beer committed Oct 20, 2017
1 parent 975fb19 commit 0d7be02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions doc/CMakeLists.txt
Expand Up @@ -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/)
Expand Down
4 changes: 2 additions & 2 deletions examples/CMakeLists.txt
@@ -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)
Expand Down

0 comments on commit 0d7be02

Please sign in to comment.