Skip to content

Commit

Permalink
cmake: define boolean switch CFG_WERROR with option()
Browse files Browse the repository at this point in the history
Replaces use of set() with option() for CFG_WERROR boolean switch.

Acked-by: Jerome Forissier <[email protected]>
Acked-by: Jens Wiklander <[email protected]>
Reviewed-by: Eero Aaltonen <[email protected]>
Tested-by: Eero Aaltonen <[email protected]>
Signed-off-by: Etienne Carriere <[email protected]>
  • Loading branch information
etienne-lms authored and jforissier committed Dec 8, 2022
1 parent bbdf665 commit 1056b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ project (optee_client C)
# https://cmake.org/Wiki/CMake_Useful_Variables
set (CMAKE_TOOLCHAIN_FILE CMakeToolchain.txt)

set (CFG_WERROR 1 CACHE BOOL "Build with -Werror")
option (CFG_WERROR "Build with -Werror" TRUE)
option (WITH_TEEACL "Build libteeacl" TRUE)

include(GNUInstallDirs)
Expand Down

0 comments on commit 1056b40

Please sign in to comment.