cmake: add cflags

This commit is contained in:
Philippe Teuwen
2020-04-18 17:37:11 +02:00
parent dc6b751ea3
commit f9857a8b0c
9 changed files with 15 additions and 4 deletions

View File

@@ -224,9 +224,6 @@ if (MINGW)
set(CMAKE_CXX_FLAGS "-mno-ms-bitfields -fexec-charset=cp850 ${CMAKE_CXX_FLAGS}")
endif (MINGW)
set(CMAKE_CXX_FLAGS "-Wall -Werror -O3")
if(NOT Qt5_FOUND)
message("Qt5 library not found, not building gui")
set(TARGET_SOURCES
@@ -256,6 +253,8 @@ add_executable(
${ADDITIONAL_SRC}
)
target_compile_options(proxmark3 PUBLIC -Wall -Werror -O3)
target_include_directories(proxmark3 PRIVATE
..
../common