How to tell whether a library is static or shared? #12958
Answered
by
dcbaker
jwillikers
asked this question in
Q&A
-
When adding a library with the |
Beta Was this translation helpful? Give feedback.
Answered by
dcbaker
Mar 11, 2024
Replies: 1 comment 1 reply
-
lib = library(...)
if get_option('default_library') != 'static'
if get_option('default_library') == 'both'
lib = lib.get_shared_library()
endif
test(..., args : lib)
endif |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jwillikers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
library()
is controlled by thedefault_library
option. This can also include a "both" setting, so you probably want to test for "!static", something like: