Skip to content

Commit 5c64ee6

Browse files
authored
build: replace make_directory with file(MAKE_DIRECTORY ...) (#956)
2 parents 4ebe266 + 3cda039 commit 5c64ee6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/cmake/Findtest-drive.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ foreach(method ${${_pkg}_FIND_METHOD})
123123

124124
# We need the module directory in the subproject before we finish the configure stage
125125
if(NOT EXISTS "${${_pkg}_BINARY_DIR}/include")
126-
make_directory("${${_pkg}_BINARY_DIR}/include")
126+
file(MAKE_DIRECTORY "${${_pkg}_BINARY_DIR}/include")
127127
endif()
128128

129129
break()
@@ -147,7 +147,7 @@ foreach(method ${${_pkg}_FIND_METHOD})
147147
FetchContent_GetProperties("${_lib}" SOURCE_DIR "${_pkg}_SOURCE_DIR")
148148
FetchContent_GetProperties("${_lib}" BINARY_DIR "${_pkg}_BINARY_DIR")
149149
if(NOT EXISTS "${${_pkg}_BINARY_DIR}/include")
150-
make_directory("${${_pkg}_BINARY_DIR}/include")
150+
file(MAKE_DIRECTORY "${${_pkg}_BINARY_DIR}/include")
151151
endif()
152152

153153
break()

src/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ set(LIB_MOD_DIR ${CMAKE_CURRENT_BINARY_DIR}/mod_files/)
145145
# We need the module directory before we finish the configure stage since the
146146
# build interface might resolve before the module directory is generated by CMake
147147
if(NOT EXISTS "${LIB_MOD_DIR}")
148-
make_directory("${LIB_MOD_DIR}")
148+
file(MAKE_DIRECTORY "${LIB_MOD_DIR}")
149149
endif()
150150

151151
set_target_properties(${PROJECT_NAME} PROPERTIES

0 commit comments

Comments
 (0)