mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
The `-arch=x86_64` from `swift/rules.bzl` turns out to be unnecessary, even on Arm-based Macs.
24 lines
574 B
CMake
24 lines
574 B
CMake
# this uses generated cmake files to setup cmake compilation of the swift extractor
|
|
# this is provided solely for IDE integration
|
|
|
|
cmake_minimum_required(VERSION 3.21)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
set(CMAKE_C_COMPILER clang)
|
|
set(CMAKE_CXX_COMPILER clang++)
|
|
|
|
if(APPLE)
|
|
set(CMAKE_OSX_ARCHITECTURES x86_64) # temporary until we can build a Universal Binary
|
|
endif()
|
|
|
|
project(codeql)
|
|
|
|
include(../misc/bazel/cmake/setup.cmake)
|
|
|
|
include_generated(//swift/extractor:cmake)
|
|
if (APPLE)
|
|
include_generated(//swift/xcode-autobuilder:cmake)
|
|
endif ()
|