@@ -8,7 +8,6 @@ project( scitokens-cpp
88
99option ( SCITOKENS_BUILD_UNITTESTS "Build the scitokens-cpp unit tests" OFF )
1010option ( SCITOKENS_EXTERNAL_GTEST "Use an external/pre-installed copy of GTest" OFF )
11- option ( SCITOKENS_WARNINGS_ARE_ERRORS "Turn compiler warnings into build errors" ON )
1211
1312set ( CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR} /cmake;${CMAKE_MODULE_PATH} " )
1413
@@ -39,7 +38,6 @@ endif()
3938
4039add_library (SciTokens SHARED src/scitokens.cpp src/scitokens_internal.cpp src/scitokens_cache.cpp)
4140target_compile_features (SciTokens PUBLIC cxx_std_11) # Use at least C++11 for building and when linking to scitokens
42- target_compile_options (SciTokens PRIVATE $<$<CXX_COMPILER_ID:GNU>:-Wall $<$<BOOL :${SCITOKENS_WARNINGS_ARE_ERRORS} >:-Werror>>)
4341target_include_directories (SciTokens PUBLIC ${JWT_CPP_INCLUDES} "${PROJECT_SOURCE_DIR} /src" PRIVATE ${CURL_INCLUDES} ${OPENSSL_INCLUDE_DIRS} ${LIBCRYPTO_INCLUDE_DIRS} ${SQLITE_INCLUDE_DIRS} ${UUID_INCLUDE_DIRS} )
4442
4543target_link_libraries (SciTokens PUBLIC ${OPENSSL_LIBRARIES} ${LIBCRYPTO_LIBRARIES} ${CURL_LIBRARIES} ${SQLITE_LIBRARIES} ${UUID_LIBRARIES} )
@@ -57,23 +55,18 @@ add_executable(scitokens-test src/test.cpp)
5755#target_include_directories(scitokens-test PRIVATE "${PROJECT_SOURCE_DIR}" ${JWT_CPP_INCLUDES} ${CURL_INCLUDES} ${OPENSSL_INCLUDE_DIRS} ${LIBCRYPTO_INCLUDE_DIRS} ${SQLITE_INCLUDE_DIRS} ${UUID_INCLUDE_DIRS})
5856target_include_directories (scitokens-test PRIVATE "${PROJECT_SOURCE_DIR} " ${JWT_CPP_INCLUDES} ${LIBCRYPTO_INCLUDE_DIRS} )
5957target_link_libraries (scitokens-test SciTokens)
60- target_compile_options (scitokens-test PRIVATE $<$<CXX_COMPILER_ID:GNU>:-Wall $<$<BOOL :${SCITOKENS_WARNINGS_ARE_ERRORS} >:-Werror>>)
6158
6259add_executable (scitokens-verify src/verify.cpp)
6360target_link_libraries (scitokens-verify SciTokens)
64- target_compile_options (scitokens-verify PRIVATE $<$<CXX_COMPILER_ID:GNU>:-Wall $<$<BOOL :${SCITOKENS_WARNINGS_ARE_ERRORS} >:-Werror>>)
6561
6662add_executable (scitokens-test -access src/test_access.cpp)
6763target_link_libraries (scitokens-test -access SciTokens)
68- target_compile_options (scitokens-test -access PRIVATE $<$<CXX_COMPILER_ID:GNU>:-Wall $<$<BOOL :${SCITOKENS_WARNINGS_ARE_ERRORS} >:-Werror>>)
6964
7065add_executable (scitokens-list-access src/list_access.cpp)
7166target_link_libraries (scitokens-list-access SciTokens)
72- target_compile_options (scitokens-list-access PRIVATE $<$<CXX_COMPILER_ID:GNU>:-Wall $<$<BOOL :${SCITOKENS_WARNINGS_ARE_ERRORS} >:-Werror>>)
7367
7468add_executable (scitokens-create src/create.cpp)
7569target_link_libraries (scitokens-create SciTokens)
76- target_compile_options (scitokens-create PRIVATE $<$<CXX_COMPILER_ID:GNU>:-Wall $<$<BOOL :${SCITOKENS_WARNINGS_ARE_ERRORS} >:-Werror>>)
7770
7871get_directory_property (TARGETS BUILDSYSTEM_TARGETS)
7972install (
0 commit comments