Skip to content

Commit

Permalink
Fixed CMake configuration failure (libevent#1321)
Browse files Browse the repository at this point in the history
Deleted usage of CMake feature 'file(REAL_PATH'
which is available from version 3.19
with an old 'get_filename_component' so that
older version of CMake can still be used
to configure the project.
  • Loading branch information
boryssmejda authored and azat committed Aug 13, 2022
1 parent 4ca417a commit 86b5d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ macro(Configure_RPATH)
# - "///" -> "/"
# - "/////usr///" -> "//usr"
# So it should be normalized again.
file(REAL_PATH "${CMAKE_INSTALL_PREFIX}" CMAKE_INSTALL_PREFIX_NORMALIZED)

get_filename_component(CMAKE_INSTALL_PREFIX_NORMALIZED "${CMAKE_INSTALL_PREFIX}" REALPATH)
list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX_NORMALIZED}/lib" isSystemDir)

if("${isSystemDir}" STREQUAL "-1")
Expand Down

0 comments on commit 86b5d2e

Please sign in to comment.