Skip to content

Commit 89a2e1b

Browse files
committed
dont create directory before renaming
1 parent ae1bd56 commit 89a2e1b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ add_subdirectory(src)
115115
prepend(LIBPG_SOURCES_FULLPATH ${CMAKE_CURRENT_SOURCE_DIR} ${LIBPG_SOURCES})
116116

117117
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/postgres)
118-
file(MAKE_DIRECTORY postgres)
119118

120119
# Download the PostgreSQL source code
121120
message(STATUS "Downloading PostgreSQL source code")
@@ -127,7 +126,6 @@ if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/postgres)
127126
STATUS PG_DOWNLOAD_RESULT)
128127

129128
if(NOT PG_DOWNLOAD_RESULT EQUAL 0)
130-
file(REMOVE_RECURSE postgres)
131129
file(REMOVE pg.tar.gz)
132130
message(FATAL_ERROR "Failed to download PostgreSQL source code")
133131
endif()

0 commit comments

Comments
 (0)