Browse Source

Cleanup CMAKE build system

Use target-specific commands for compile flags only
Dirk Ziegelmeier 7 years ago
parent
commit
a19ea8b8d6
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Filelists.cmake

+ 3 - 0
src/Filelists.cmake

@@ -274,4 +274,7 @@ endif (DOXYGEN_FOUND)
 
 # lwIP libraries
 add_library(lwipcore EXCLUDE_FROM_ALL ${lwipnoapps_SRCS})
+target_compile_options(lwipcore PRIVATE ${LWIP_COMPILER_FLAGS})
+
 add_library(lwipallapps EXCLUDE_FROM_ALL ${lwipallapps_SRCS})
+target_compile_options(lwipallapps PRIVATE ${LWIP_COMPILER_FLAGS})