Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame^] | 1 | --- |
| 2 | CMakeLists.txt | 3 ++- |
| 3 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 4 | |
| 5 | Index: tpm_emulator-x86_64/CMakeLists.txt |
| 6 | =================================================================== |
| 7 | --- a/CMakeLists.txt |
| 8 | +++ b/CMakeLists.txt |
| 9 | @@ -40,10 +40,11 @@ set(TPM_STORAGE_NAME "/var/lib/tpm/tpm_e |
| 10 | set(TPM_DEVICE_NAME "/dev/tpm") |
| 11 | endif() |
| 12 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h) |
| 13 | -add_definitions(-Wall -Werror -Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings) |
| 14 | +add_definitions(-Wall -Werror) |
| 15 | if("${CMAKE_SYSTEM}" MATCHES "Linux") |
| 16 | add_definitions(-Wextra) |
| 17 | endif() |
| 18 | +add_definitions(-Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings) |
| 19 | if(USE_OPENSSL) |
| 20 | add_definitions(-DUSE_OPENSSL) |
| 21 | endif() |