From 7b0947edb8b751a9ff626bc1f75cfdb29306bf68 Mon Sep 17 00:00:00 2001 From: NAUD Maxence <maxence.naud@cea.fr> Date: Thu, 27 Jul 2023 09:27:26 +0000 Subject: [PATCH] Update CMakeList.txt with more warnings --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a858184..59b9c5c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ option(TESTS "tests generation" OFF) include("${CMAKE_CURRENT_LIST_DIR}/cmake/cotire.cmake") # For LINUX - GCC -add_compile_options(-Wall -Wextra -fPIC) +add_compile_options(-Wall -Wextra -fPIC -Wold-style-cast -Winline -pedantic -Werror=narrowing -Wshadow) if (PYBIND) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules") @@ -18,4 +18,4 @@ if (PYBIND) endif() add_subdirectory(${CMAKE_SOURCE_DIR}/aidge/_Core) -add_subdirectory(${CMAKE_SOURCE_DIR}/aidge/_CPU) \ No newline at end of file +add_subdirectory(${CMAKE_SOURCE_DIR}/aidge/_CPU) -- GitLab