Skip to content

Commit

Permalink
exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Jul 2, 2024
1 parent 6e0a7b1 commit 98b6f50
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Config.cmake/mergestaticlibs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ function(merge_static_libs outlib)
endif()
if(multiconfig)
foreach(CONFIG_TYPE ${CMAKE_CONFIGURATION_TYPES})
set (libfile ${CMAKE_BINARY_DIR}/${CONFIG_TYPE}/${lib}${CMAKE_STATIC_LIBRARY_SUFFIX})
if (EXISTS ${libfile})
list(APPEND libfiles ${libfile})
endif ()
list(APPEND libfiles $<TARGET_FILE:${lib}>)
endforeach()
else()
list(APPEND libfiles "$<TARGET_FILE:${lib}>")
Expand Down

0 comments on commit 98b6f50

Please sign in to comment.