mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
The bazel -> cmake generator is currently not capable of handling separate included generated cmake files making use of common C/C++ dependencies. To work around this limitation, a single generated cmake is now in place. Long-term, we should either: * make the cmake generator handle common dependencies gracefully, or * make the cmake generation aspect travel up `pkg_` rules `srcs` attributes so to avoid having to list the targets to be generated in the top-level `BUILD` file. Other things fixed: * removed some warning spam about redefined `BAZEL_CURRENT_REPOSITORY` * fixed the final link step, that was failing because `libswiftCore.so` was not being linked.
21 lines
489 B
CMake
21 lines
489 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:cmake)
|