]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix(cmake): Enable assembler compiler conditionally (#1678)
authorSteffen <steffen.winter@proton.me>
Sat, 7 Feb 2026 08:50:14 +0000 (08:50 +0000)
committerGitHub <noreply@github.com>
Sat, 7 Feb 2026 08:50:14 +0000 (09:50 +0100)
CMake will call `enable_language` for all languages passed to `project`.
This deduplicates the work and only enables one assembler depending on
the platform.

CMakeLists.txt

index 470d4eb07d754306581b069fcdce9d74385d047a..e342c61da1f8cd98d584de59475b7135c707226f 100644 (file)
@@ -1,6 +1,6 @@
 cmake_minimum_required(VERSION 3.18)
 
-project(ccache LANGUAGES C CXX ASM ASM_MASM)
+project(ccache LANGUAGES C CXX)
 if(MSVC)
   enable_language(ASM_MASM)
 else()