Fix incorrect variable expansion

This commit is contained in:
Chris Thrasher 2023-11-14 10:51:27 -07:00 committed by Lukas Dürrenberger
parent c20ab7d6d8
commit 1f345d7d25

View File

@ -411,9 +411,9 @@ else()
set_target_properties(SFML PROPERTIES INSTALL_NAME_DIR "@rpath")
if(NOT CMAKE_SKIP_BUILD_RPATH)
if (CMAKE_VERSION VERSION_LESS 3.9)
set_target_properties(${target} PROPERTIES BUILD_WITH_INSTALL_RPATH TRUE)
set_target_properties(SFML PROPERTIES BUILD_WITH_INSTALL_RPATH TRUE)
else()
set_target_properties(${target} PROPERTIES BUILD_WITH_INSTALL_NAME_DIR TRUE)
set_target_properties(SFML PROPERTIES BUILD_WITH_INSTALL_NAME_DIR TRUE)
endif()
endif()