Skip to content

Commit

Permalink
Merge branch 'tribits_github_snapshot' into 10774-fix-atdm-builds (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlettroscoe committed Jul 26, 2022
2 parents b6fdda0 + 588ab34 commit 042bdd7
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,14 @@ function(tribits_extpkg_append_add_library_str
)
set(configFileStr "${${configFileStrInOut}}")
if (libEntryType STREQUAL "FULL_LIB_PATH")
get_filename_component(libExt "${libpath}" LAST_EXT)
if (libExt STREQUAL ".a")
set(libType STATIC)
else()
set(libType UNKNOWN)
endif()
string(APPEND configFileStr
"add_library(${prefixed_libname} IMPORTED UNKNOWN GLOBAL)\n"
"add_library(${prefixed_libname} IMPORTED ${libType} GLOBAL)\n"
"set_target_properties(${prefixed_libname} PROPERTIES\n"
" IMPORTED_LOCATION \"${libpath}\")\n"
)
Expand Down

0 comments on commit 042bdd7

Please sign in to comment.