aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
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)