Fix: wrong compile options added
[apps/app-templates.git] / cmake / cmake.d / 01-build_options.cmake
index 17f1eab..b90e0ce 100644 (file)
@@ -40,9 +40,6 @@ set(CMP0048 1)
 ############################################################################
 link_libraries(-Wl,--as-needed -Wl,--gc-sections)
 set(COMPILE_OPTIONS -Wall -Wextra -Wconversion -Wno-unused-parameter -Wno-sign-compare -Wno-sign-conversion -Werror=maybe-uninitialized -Werror=implicit-function-declaration -ffunction-sections -fdata-sections -fPIC CACHE STRING "Compilation flags")
-foreach(option ${COMPILE_OPTIONS})
-       add_compile_options($<$<CONFIG:PROFILING>:${option}>)
-endforeach()
 
 # Compilation OPTIONS depending on language
 #########################################