Skip to content

Commit

Permalink
CMake: remove all remaining traces of CMake < 3.16
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Dec 6, 2023
1 parent 7072991 commit cc7f901
Show file tree
Hide file tree
Showing 29 changed files with 45 additions and 6,604 deletions.
9 changes: 0 additions & 9 deletions autotest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,13 @@ function (copy_file_or_dir source dest)
endfunction()

function (symlink_or_copy source destination)
if (CMAKE_VERSION VERSION_GREATER 3.14)
file(
CREATE_LINK ${source} ${destination}
RESULT res
SYMBOLIC)
if (NOT res EQUAL 0)
copy_file_or_dir(${source} ${destination})
endif ()
else ()
if (NOT CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${source} ${destination})
else ()
copy_file_or_dir(${source} ${destination})
endif ()
endif ()

endfunction ()

symlink_or_copy(${CMAKE_CURRENT_SOURCE_DIR}/conftest.py ${CMAKE_CURRENT_BINARY_DIR}/conftest.py)
Expand Down
2,098 changes: 0 additions & 2,098 deletions cmake/modules/3.12/FindBoost.cmake

This file was deleted.

130 changes: 0 additions & 130 deletions cmake/modules/3.12/FindJPEG.cmake

This file was deleted.

102 changes: 0 additions & 102 deletions cmake/modules/3.12/FindLibXml2.cmake

This file was deleted.

Loading

0 comments on commit cc7f901

Please sign in to comment.