mkdirs.cmake.in 835 B

123456789101112131415161718192021222324252627
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. cmake_minimum_required(VERSION 3.5)
  4. # If CMAKE_DISABLE_SOURCE_CHANGES is set to true and the source directory is an
  5. # existing directory in our source tree, calling file(MAKE_DIRECTORY) on it
  6. # would cause a fatal error, even though it would be a no-op.
  7. if(NOT EXISTS "@source_dir@")
  8. file(MAKE_DIRECTORY "@source_dir@")
  9. endif()
  10. file(MAKE_DIRECTORY
  11. "@binary_dir@"
  12. "@install_dir@"
  13. "@tmp_dir@"
  14. "@stamp_dir@"
  15. "@download_dir@"
  16. "@log_dir@"
  17. )
  18. set(configSubDirs @CMAKE_CONFIGURATION_TYPES@)
  19. foreach(subDir IN LISTS configSubDirs)
  20. file(MAKE_DIRECTORY "@stamp_dir@/${subDir}")
  21. endforeach()
  22. if(cfgdir)
  23. file(MAKE_DIRECTORY "@stamp_dir@${cfgdir}") # cfgdir has leading slash
  24. endif()