aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Vedder <stephan.vedder@gmail.com>2019-05-15 22:50:01 +0200
committerBrent Cook <busterb@gmail.com>2019-06-10 06:49:34 -0500
commitc6f8ca2bc6b5bd8ca8842326f74e0cff007766ad (patch)
tree160c85c6bd8db48910ba84558731632d785f2583
parent4dabadaf4dd5dc971174af6e861acaf5a16b8f93 (diff)
downloadportable-c6f8ca2bc6b5bd8ca8842326f74e0cff007766ad.tar.gz
portable-c6f8ca2bc6b5bd8ca8842326f74e0cff007766ad.tar.bz2
portable-c6f8ca2bc6b5bd8ca8842326f74e0cff007766ad.zip
Enable masm compilation under windows
-rw-r--r--CMakeLists.txt2
-rw-r--r--crypto/CMakeLists.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a6a7554..af287a4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -289,7 +289,7 @@ if(ENABLE_ASM)
289 endif() 289 endif()
290 elseif(APPLE AND "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64") 290 elseif(APPLE AND "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64")
291 set(HOST_ASM_MACOSX_X86_64 true) 291 set(HOST_ASM_MACOSX_X86_64 true)
292 elseif(MSVC AND "${CMAKE_GENERATOR}" MATCHES "Win64" AND FALSE) 292 elseif(MSVC AND "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "AMD64")
293 # XXX Disabled for now, CMake's MASM support seems to either never 293 # XXX Disabled for now, CMake's MASM support seems to either never
294 # build supply ASM or build it with the C compiler in a mode where it 294 # build supply ASM or build it with the C compiler in a mode where it
295 # does not parse correctly. It might be easier to get NASM support working. 295 # does not parse correctly. It might be easier to get NASM support working.
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt
index 0d65874..e1b9287 100644
--- a/crypto/CMakeLists.txt
+++ b/crypto/CMakeLists.txt
@@ -147,7 +147,7 @@ if(HOST_ASM_MASM_X86_64)
147 add_definitions(-DWHIRLPOOL_ASM) 147 add_definitions(-DWHIRLPOOL_ASM)
148 add_definitions(-DOPENSSL_CPUID_OBJ) 148 add_definitions(-DOPENSSL_CPUID_OBJ)
149 set(CRYPTO_SRC ${CRYPTO_SRC} ${ASM_X86_64_MASM_SRC}) 149 set(CRYPTO_SRC ${CRYPTO_SRC} ${ASM_X86_64_MASM_SRC})
150 set_property(SOURCE ${ASM_X86_64_MASM_SRC} PROPERTY LANGUAGE C) 150 set_property(SOURCE ${ASM_X86_64_MASM_SRC} PROPERTY LANGUAGE ASM_MASM)
151endif() 151endif()
152 152
153if(HOST_ASM_MINGW64_X86_64) 153if(HOST_ASM_MINGW64_X86_64)