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)