Skip to content

Commit

Permalink
Updated cmake script
Browse files Browse the repository at this point in the history
  • Loading branch information
WillisMedwell committed Feb 5, 2024
1 parent a4fff13 commit c6eaaf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ if(BUILD_UTILY_TESTS)
elseif(NOT MSVC)
target_compile_options(UtilyTest PRIVATE "-Wall" "-Wextra" "-Wpedantic" "-Wcast-align" "-Wcast-qual" "-Wctor-dtor-privacy" "-Wformat=2" "-Winit-self" "-Wmissing-declarations" "-Wmissing-include-dirs" "-Wold-style-cast" "-Woverloaded-virtual" "-Wredundant-decls" "-Wshadow" "-Wsign-conversion" "-Wsign-promo" "-Wstrict-overflow=5" "-Wswitch-default" "-Wundef" "-Wno-unused" "-Wconversion" "-Wsign-compare")
target_compile_options(UtilyTest PRIVATE -march=native)
target_compile_options(UtilyTest PRIVATE -g -fsanitize=address)
endif()
target_compile_options(UtilyTest PRIVATE -g)


target_link_libraries(UtilyTest PRIVATE GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main Utily::Utily)
enable_testing()
Expand Down
2 changes: 0 additions & 2 deletions src/FileReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ namespace Utily {
}
}
*/

#else
#warning "Platform is not optimised for file reading."

#include <cstdio>

Expand Down

0 comments on commit c6eaaf7

Please sign in to comment.