only enable ASM_MASM on win32

This commit is contained in:
Anthony Pesch 2016-02-17 20:59:04 -08:00
parent def67f72cd
commit 2b42b9c85c
1 changed files with 8 additions and 3 deletions

View File

@ -11,9 +11,14 @@ if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set(CMAKE_BUILD_TYPE "RelWithDebInfo")
endif()
# enable both ASM and ASM_MASM. cmake will ignore whichever one isn't supported
# by the current platform
project(redream C CXX ASM ASM_MASM)
list(APPEND REDREAM_LANGUAGES C CXX)
if(WIN32)
list(APPEND REDREAM_LANGUAGES ASM_MASM)
else()
list(APPEND REDREAM_LANGUAGES ASM)
endif()
project(redream ${REDREAM_LANGUAGES})
# export compile_commands.json for clang-tidy
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)