Commit a0723ad 1 parent 21d1a81 commit a0723ad Copy full SHA for a0723ad
File tree 1 file changed +5
-28
lines changed
1 file changed +5
-28
lines changed Original file line number Diff line number Diff line change @@ -479,34 +479,11 @@ if(NOT NMOS_CPP_USE_SUPPLIED_JWT_CPP)
479
479
target_link_libraries (jwt-cpp INTERFACE jwt-cpp::jwt-cpp)
480
480
else ()
481
481
message (STATUS "Using sources at third_party/jwt-cpp instead of external \" jwt-cpp\" package." )
482
-
483
- set (JWT_SOURCES
484
- )
485
-
486
- set (JWT_HEADERS
487
- third_party/jwt-cpp/base.h
488
- third_party/jwt-cpp/jwt.h
489
- third_party/jwt-cpp/traits/nlohmann-json/defaults.h
490
- third_party/jwt-cpp/traits/nlohmann-json/traits.h
491
- )
492
-
493
- # hm, header-only so should be INTERFACE library?
494
- add_library (
495
- jwt-cpp STATIC
496
- ${JWT_SOURCES}
497
- ${JWT_HEADERS}
498
- )
499
-
500
- source_group ("Source Files" FILES ${JWT_SOURCES} )
501
- source_group ("Header Files" FILES ${JWT_HEADERS} )
502
-
503
- target_link_libraries (
504
- jwt-cpp PRIVATE
505
- nmos-cpp::compile-settings
506
- )
507
- target_include_directories (jwt-cpp PUBLIC
508
- $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} >
509
- $<INSTALL_INTERFACE:${NMOS_CPP_INSTALL_INCLUDEDIR} >
482
+
483
+ add_library (jwt-cpp INTERFACE )
484
+ target_include_directories (jwt-cpp INTERFACE
485
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /third_party>
486
+ $<INSTALL_INTERFACE:${NMOS_CPP_INSTALL_INCLUDEDIR} /third_party>
510
487
)
511
488
endif ()
512
489
You can’t perform that action at this time.
0 commit comments