From fc74b9c05b5e949d7d7e8a62be4297b21f0e2660 Mon Sep 17 00:00:00 2001 From: Yancey <135342560+Yancey2023@users.noreply.github.com> Date: Sat, 12 Oct 2024 23:44:19 +0800 Subject: [PATCH] make_directory is deprecated since version 3.0, use the file(MAKE_DIRECTORY) command instead --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f2d31d9e010..8ee1f0022ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -238,8 +238,8 @@ endif() set(PCL_OUTPUT_LIB_DIR "${PCL_BINARY_DIR}/${LIB_INSTALL_DIR}") set(PCL_OUTPUT_BIN_DIR "${PCL_BINARY_DIR}/${BIN_INSTALL_DIR}") -make_directory("${PCL_OUTPUT_LIB_DIR}") -make_directory("${PCL_OUTPUT_BIN_DIR}") +file(MAKE_DIRECTORY "${PCL_OUTPUT_LIB_DIR}") +file(MAKE_DIRECTORY "${PCL_OUTPUT_BIN_DIR}") set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PCL_OUTPUT_LIB_DIR}") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PCL_OUTPUT_BIN_DIR}") if(WIN32)