Manage compiler flags and some include options per file or target, not globally
[alexxy/gromacs.git] / src / gromacs / linearalgebra / CMakeLists.txt
index bf84cbcb08c738477a0d678a437b48fac49d564e..df00b8464d8e947462bf68c8625809ffab0b69e2 100644 (file)
@@ -46,6 +46,8 @@ set(LINEARALGEBRA_SOURCES
     ${LINEARALGEBRA_SOURCES} ${BLAS_SOURCES} ${LAPACK_SOURCES})
 
 add_library(linearalgebra OBJECT ${LINEARALGEBRA_SOURCES})
+gmx_target_compile_options(linearalgebra)
+target_compile_definitions(linearalgebra PRIVATE HAVE_CONFIG_H)
 # The linearalgebra code is all considered external, and we will
 # not keep it free of warnings. Any compiler suppressions required
 # should be added here.