You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This entails changing most global variables to target attributes
and being careful about PUBLIC vs PRIVATE target attributes.
For those global variables we must have, like the options,
give them a SCITOKENS prefix as an ersatz namespace.
Also, it means using built-in cmake mechanisms to set things like the minimum
C++ standard required, debugging and optimization flags in a portable manner.
Note that with these changes, scitokens-cpp is now cmake fetchable.
That is, a client can chose to use this library in their own cmake
by just doing this:
include(FetchContent)
FetchContent_Declare(SciTokens
GIT_REPOSITORY https://github.com/scitokens/scitokens-cpp
GIT_TAG master)
FetchContent_MakeAvailable(SciTokens)
add_executable(test test.cpp)
target_link_libraries(test SciTokens)
And all the -l -D and -I flags flow through the SciTokens target
to the users of that target, but don't impact any targets
that don't link with SciTokens.
0 commit comments