build: setting of "-Wno-unused-result" flag moved to a different CMake file

This commit is contained in:
Mateusz Pusz
2025-03-20 17:33:26 +01:00
parent c2672c069b
commit c49a8e2103
2 changed files with 9 additions and 7 deletions

View File

@@ -84,10 +84,3 @@ endif()
# add unit tests
enable_testing()
add_subdirectory(test)
# TODO remove this hack when clang-20.2 is released
if(CMAKE_CXX_COMPILER_ID MATCHES ".*Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 20
AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 20.2
)
target_compile_options(mp-units-core PUBLIC "-Wno-unused-result")
endif()