cmake: Only search for MASM when using MSVC
authorsfan5 <sfan5@live.de>
Tue, 12 Sep 2023 21:38:47 +0000 (23:38 +0200)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Wed, 13 Sep 2023 03:34:04 +0000 (21:34 -0600)
.github/workflows/build.yml
loader/CMakeLists.txt

index 5df9ad10782031914dd4b5ea2d2ff8ab3666a74b..f7c3f2e87a3f6f92f8c13484972feb312a114007 100644 (file)
@@ -465,7 +465,7 @@ jobs:
         - name: GCC Version
           run: gcc --version # If this fails MINGW is not setup correctly
         - name: Configure
-          run: cmake -S. -B build -D UPDATE_DEPS=ON -D CMAKE_BUILD_TYPE=Release -D USE_MASM=OFF -D ENABLE_WERROR=ON
+          run: cmake -S. -B build -D UPDATE_DEPS=ON -D CMAKE_BUILD_TYPE=Release -D ENABLE_WERROR=ON
           env:
             LDFLAGS: -fuse-ld=lld # MINGW linking is very slow. Use llvm linker instead.
             CMAKE_C_COMPILER_LAUNCHER: ccache
index 30af7de814aa64cb84c302dd0c7ee53eaaf13829..47c9cd7073c1ff006959a44ccb5f787c79d0fe24 100644 (file)
@@ -130,6 +130,9 @@ if(WIN32)
             endif()
         endif()
     endif()
+    if (NOT MSVC)
+        set(USE_MASM OFF)
+    endif ()
     option(USE_MASM "Use MASM" ON)
     if (USE_MASM)
       enable_language(ASM_MASM)