build: Fix assembler warning on Win64
authorLenny Komow <lenny@lunarg.com>
Thu, 22 Jun 2017 17:45:47 +0000 (11:45 -0600)
committerLenny Komow <lenny@lunarg.com>
Thu, 22 Jun 2017 17:45:47 +0000 (11:45 -0600)
Change-Id: I234f65c3422628c7a66c53e01044045126c4a7b2

loader/CMakeLists.txt

index ebc7f22..e5a3c80 100644 (file)
@@ -90,7 +90,9 @@ set(ASM_FAILURE_MSG "${ASM_FAILURE_MSG} extensions will suffer from a corrupted
 if (WIN32)
     enable_language(ASM_MASM)
     if (CMAKE_ASM_MASM_COMPILER_WORKS)
-        set(CMAKE_ASM_MASM_FLAGS ${CMAKE_ASM_MASM_FLAGS} /safeseh)
+        if (NOT CMAKE_CL_64)
+            set(CMAKE_ASM_MASM_FLAGS ${CMAKE_ASM_MASM_FLAGS} /safeseh)
+        endif()
         set(OPT_LOADER_SRCS ${OPT_LOADER_SRCS} phys_dev_chain_masm.asm)
 
         add_executable(asm_offset asm_offset.c)