Skip to content

Commit

Permalink
Enable ASM_MASM and ASM-ATT languages only when on Windows and Linux,…
Browse files Browse the repository at this point in the history
… respectively
  • Loading branch information
danielkrupinski committed Jul 17, 2024
1 parent e29d9b7 commit 1147ff9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
cmake_minimum_required(VERSION 3.24)
project(Osiris LANGUAGES CXX ASM-ATT ASM_MASM)
project(Osiris LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

if(WIN32)
enable_language(ASM_MASM)
elseif(UNIX)
enable_language(ASM-ATT)
endif()

add_subdirectory(Source)

option(BUILD_TESTS "Build unit tests" OFF)
Expand Down

0 comments on commit 1147ff9

Please sign in to comment.