From 4cd09deccf0b2415362c82b74fc4906a270c2a0e Mon Sep 17 00:00:00 2001 From: Paul Dreik Date: Fri, 13 Dec 2024 11:00:41 +0100 Subject: [PATCH] enable compiler warnings --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b92d8e1..881b8eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -110,6 +110,8 @@ add_library(${LIBRARY_TARGET_NAME} ${${LIBRARY_TARGET_NAME}_SRC} ${${LIBRARY_TAR target_include_directories(${LIBRARY_TARGET_NAME} PUBLIC "$" "$") +ADD_WARNINGS_CONFIGURATION_TO_TARGETS(PRIVATE TARGETS ${LIBRARY_TARGET_NAME}) + target_link_libraries(${LIBRARY_TARGET_NAME} PUBLIC osqp::osqp Eigen3::Eigen) if(OSQP_IS_V1) target_compile_definitions(${LIBRARY_TARGET_NAME} PUBLIC OSQP_EIGEN_OSQP_IS_V1)