diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-19 14:27:14 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-19 14:47:44 +0200 |
| commit | 497609bb0229d752f54e01ff580d38499d126e96 (patch) | |
| tree | 7313cc5ba112fc1a9d85dde256cc1659d86c9379 /CMakeLists.txt | |
| parent | Reapply "cmake: treat warnings as errors" (diff) | |
| download | aes-tools-497609bb0229d752f54e01ff580d38499d126e96.tar.gz aes-tools-497609bb0229d752f54e01ff580d38499d126e96.zip | |
fix masm compiler options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 28197a2..42c658e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,13 +3,13 @@ # CMAKE_MSVC_RUNTIME_LIBRARY and stuff. cmake_minimum_required(VERSION 3.25) -project(aes_tools C CXX) +project(aes_tools C CXX ASM) enable_testing() if (MSVC) - add_compile_options(/MP /W4 /WX) + add_compile_options("$<$<NOT:$<COMPILE_LANGUAGE:ASM,ASM_MASM>>:/MP;/W4;/WX>") else() - add_compile_options(-Wall -Wextra -pedantic -Werror) + add_compile_options("$<$<NOT:$<COMPILE_LANGUAGE:ASM,ASM_MASM>>:-Wall;-Wextra;-pedantic;-Werror>") endif() add_compile_definitions(WIN32_LEAN_AND_MEAN NOMINMAX) |
