Fix typos in cmake
This commit is contained in:
committed by
Sam Lantinga
parent
70c8fe61d7
commit
e38f971f46
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user