*******> update.11 Author: Jamie Smith Date: October 26, 2020 Programs: cmake build Description: This recognizes .tbd files that exist in newer OSX systems -------------------------------------------------------------------------------- cmake/LibraryUtils.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git cmake/LibraryUtils.cmake cmake/LibraryUtils.cmake index 396b373819..9991a5bf9f 100644 --- cmake/LibraryUtils.cmake +++ cmake/LibraryUtils.cmake @@ -64,6 +64,12 @@ function(get_lib_type LIBRARY OUTPUT_VARIABLE) endif() endif() endif() + + # .tbd files are stubs for dynamic libraries on OS X + if(TARGET_OSX AND ${LIB_NAME} MATCHES ".*\\.tbd") + set(${OUTPUT_VARIABLE} SHARED PARENT_SCOPE) + return() + endif() # now we can figure the rest out by suffix matching if((NOT TARGET_WINDOWS) OR (TARGET_WINDOWS AND MINGW AND "${LIB_TYPE}" STREQUAL ""))