Browse Source

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

pull/3/head
Christian Beier 4 years ago
parent
commit
79516a6aa3
No known key found for this signature in database
GPG Key ID: 421BB3B45C6067F8
  1. 4
      CMakeLists.txt

4
CMakeLists.txt

@ -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