Skip to content

Commit 49c6ecd

Browse files
committed
BUILD: Support cmake < 3.20
1 parent c35d716 commit 49c6ecd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/InstallSource.cmake

+5-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ function(install_in_home name)
139139
"Cannot link from build home: ${file} does not exist")
140140
endif()
141141
add_symlink_command(${file} ${buildhome}/${base})
142-
cmake_path(SET dep NORMALIZE ${buildhome}/${base})
142+
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.20")
143+
cmake_path(SET dep NORMALIZE ${buildhome}/${base})
144+
else()
145+
set(dep ${buildhome}/${base})
146+
endif()
143147
set(deps ${deps} ${dep})
144148
endforeach()
145149

0 commit comments

Comments
 (0)