use file(MAKE_DIRECTORY) instead of make_directory

This commit is contained in:
ConfiG 2024-02-03 20:28:47 +03:00
parent 55f3e67033
commit c2ea744d67
No known key found for this signature in database
GPG key ID: 44DA1983F524C11B
2 changed files with 6 additions and 6 deletions

View file

@ -208,14 +208,14 @@ add_dependencies(${PROJECT_NAME} CodegenRun)
# Hacky way to supress the not generated error
if (NOT EXISTS ${GEODE_CODEGEN_PATH}/Geode/GeneratedSource.cpp)
make_directory(${GEODE_CODEGEN_PATH})
make_directory(${GEODE_CODEGEN_PATH}/Geode)
file(MAKE_DIRECTORY ${GEODE_CODEGEN_PATH})
file(MAKE_DIRECTORY ${GEODE_CODEGEN_PATH}/Geode)
file(TOUCH ${GEODE_CODEGEN_PATH}/Geode/GeneratedSource.cpp)
endif()
if (NOT EXISTS ${GEODE_CODEGEN_PATH}/Geode/GeneratedAddress.cpp)
make_directory(${GEODE_CODEGEN_PATH})
make_directory(${GEODE_CODEGEN_PATH}/Geode)
file(MAKE_DIRECTORY ${GEODE_CODEGEN_PATH})
file(MAKE_DIRECTORY ${GEODE_CODEGEN_PATH}/Geode)
file(TOUCH ${GEODE_CODEGEN_PATH}/Geode/GeneratedAddress.cpp)
endif()
@ -259,7 +259,7 @@ target_link_libraries(${PROJECT_NAME} INTERFACE ghc_filesystem fmt TulipHookIncl
if (NOT EXISTS ${GEODE_BIN_PATH})
make_directory(${GEODE_BIN_PATH})
file(MAKE_DIRECTORY ${GEODE_BIN_PATH})
endif()
if (NOT EXISTS ${GEODE_BIN_PATH}/${PROJECT_VERSION} AND EXISTS ${GEODE_BIN_PATH}/nightly/)

View file

@ -185,7 +185,7 @@ add_library(${PROJECT_NAME} SHARED ${SOURCES})
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_20)
make_directory("${GEODE_BIN_PATH}/nightly")
file(MAKE_DIRECTORY "${GEODE_BIN_PATH}/nightly")
# Prevent SDK from activating a loader build
set_target_properties(${PROJECT_NAME} PROPERTIES