Skip to content

Commit

Permalink
[INFRA,TEST] hibf lib inside tests should be built with warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Oct 12, 2023
1 parent 7d1bd37 commit 5b3bb2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/hibf-test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ list (APPEND CMAKE_MODULE_PATH "${HIBF_TEST_CMAKE_MODULE_DIR}")
# libraries which are in common for **all** hibf tests
if (NOT TARGET hibf::test)
add_library (hibf_test INTERFACE)
target_compile_options (hibf_test INTERFACE "-pedantic" "-Wall" "-Wextra" "-Werror")

# GCC12 and above: Disable warning about std::hardware_destructive_interference_size not being ABI-stable.
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
Expand Down Expand Up @@ -94,3 +93,4 @@ include (hibf_add_subdirectories)

get_filename_component (HIBF_ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}/.." ABSOLUTE)
add_subdirectory ("${HIBF_ROOT_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/hibf_lib")
target_compile_options (hibf PUBLIC "-pedantic" "-Wall" "-Wextra" "-Werror")

0 comments on commit 5b3bb2b

Please sign in to comment.