Fix typos in cmake

This commit is contained in:
Bruce Mitchener authored and Sam Lantinga committed 2024-07-15 15:24:00 -07:00
1 parent 70c8fe61d7
commit e38f971f46
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -209,8 +209,8 @@ function(target_get_dynamic_library DEST TARGET)
endforeach()
else()
# 1. find the target library a file might be symbolic linking to
# 2. find all other files in the same folder that symolic link to it
# 3. sort all these files, and select the 1st item on Linux, and last on Macos
# 2. find all other files in the same folder that symbolic link to it
# 3. sort all these files, and select the 1st item on Linux, and last on macOS
set(location_properties IMPORTED_LOCATION)
if(CMAKE_BUILD_TYPE)
list(APPEND location_properties IMPORTED_LOCATION_${CMAKE_BUILD_TYPE})
@@ -226,7 +226,7 @@ function(target_get_dynamic_library DEST TARGET)
foreach(location_property ${location_properties})
if(NOT result)
get_target_property(library_path "${TARGET}" ${location_property})
message(DEBUG "get_target_property(${TARGET} ${location_propert}) -> ${library_path}")
message(DEBUG "get_target_property(${TARGET} ${location_property}) -> ${library_path}")
if(EXISTS "${library_path}")
get_filename_component(library_path "${library_path}" ABSOLUTE)
while (IS_SYMLINK "${library_path}")