CMake: make get_link_libraries() not crash when there are no linked libraries at all

pull/3/head
Christian Beier 6 years ago
parent 474f64e5db
commit 79516a6aa3
No known key found for this signature in database
GPG Key ID: 421BB3B45C6067F8

@ -617,7 +617,9 @@ function(get_link_libraries OUT TARGET)
endforeach()
list(REMOVE_DUPLICATES RESULT)
string(CONCAT RESULT ${RESULT}) # back to string
string(REPLACE "-l" " -l" RESULT ${RESULT}) # re-add separators
if(RESULT)
string(REPLACE "-l" " -l" RESULT ${RESULT}) # re-add separators
endif(RESULT)
set(${OUT} ${RESULT} PARENT_SCOPE)
endfunction()

Loading…
Cancel
Save