Back to home page

EIC code displayed by LXR

 
 

    


Warning, /acts/thirdparty/Annoy/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # This file is part of the ACTS project.
0002 #
0003 # Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 #
0005 # This Source Code Form is subject to the terms of the Mozilla Public
0006 # License, v. 2.0. If a copy of the MPL was not distributed with this
0007 # file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 # CMake include(s).
0010 include(FetchContent)
0011 
0012 # Information message.
0013 message(STATUS "Building Annoy as part of the ACTS project")
0014 
0015 # Version of the Annoy library to fetch.
0016 set(ANNOY_VERSION "v${_acts_annoy_version}")
0017 
0018 # Declare the fetching of the Annoy library.
0019 FetchContent_Declare(
0020     Annoy
0021     ${ACTS_ANNOY_SOURCE}
0022     PATCH_COMMAND
0023         patch -p1 < ${CMAKE_CURRENT_SOURCE_DIR}/0001-Modify-annoy.patch
0024 )
0025 
0026 # Make the fetched content available.
0027 # Annoy contains a CMakeLists.txt file, so it will be added as a subdirectory.
0028 FetchContent_MakeAvailable(Annoy)
0029 
0030 target_compile_options(
0031     Annoy
0032     INTERFACE "-Wno-old-style-cast" "-Wno-zero-as-null-pointer-constant"
0033 )