Reland "[CMake] Bumps minimum version to 3.20.0.
This reverts commit d763c6e5e2d0a6b34097aa7dabca31e9aff9b0b6.
Adds the patch by @hans from
https://github.com/llvm/llvm-project/issues/62719
This patch fixes the Windows build.
d763c6e5e2d0a6b34097aa7dabca31e9aff9b0b6 reverted the reviews
D144509 [CMake] Bumps minimum version to 3.20.0.
This partly undoes D137724.
This change has been discussed on discourse
https://discourse.llvm.org/t/rfc-upgrading-llvms-minimum-required-cmake-version/66193
Note this does not remove work-arounds for older CMake versions, that
will be done in followup patches.
D150532 [OpenMP] Compile assembly files as ASM, not C
Since CMake 3.20, CMake explicitly passes "-x c" (or equivalent)
when compiling a file which has been set as having the language
C. This behaviour change only takes place if "cmake_minimum_required"
is set to 3.20 or newer, or if the policy CMP0119 is set to new.
Attempting to compile assembly files with "-x c" fails, however
this is workarounded in many cases, as OpenMP overrides this with
"-x assembler-with-cpp", however this is only added for non-Windows
targets.
Thus, after increasing cmake_minimum_required to 3.20, this breaks
compiling the GNU assembly for Windows targets; the GNU assembly is
used for ARM and AArch64 Windows targets when building with Clang.
This patch unbreaks that.
D150688 [cmake] Set CMP0091 to fix Windows builds after the cmake_minimum_required bump
The build uses other mechanism to select the runtime.
Fixes #62719
Reviewed By: #libc, Mordante
Differential Revision: https://reviews.llvm.org/D151344
2023-05-24 16:12:32 +00:00
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
2018-02-14 17:06:47 +00:00
|
|
|
|
2022-10-24 04:31:37 +00:00
|
|
|
if(NOT DEFINED LLVM_COMMON_CMAKE_UTILS)
|
|
|
|
set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
|
|
|
|
endif()
|
|
|
|
include(${LLVM_COMMON_CMAKE_UTILS}/Modules/CMakePolicy.cmake
|
|
|
|
NO_POLICY_SCOPE)
|
|
|
|
|
2021-01-10 12:11:35 +00:00
|
|
|
set(CMAKE_BUILD_WITH_INSTALL_NAME_DIR ON)
|
2019-01-19 22:38:31 +00:00
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
# Flang requires C++17.
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
|
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
2018-02-19 13:28:12 +00:00
|
|
|
|
2023-04-26 19:49:58 +00:00
|
|
|
if (LLVM_ENABLE_EH)
|
|
|
|
# To match with the flang guidelines we currently disable
|
|
|
|
# building with exception support in core LLVM.
|
|
|
|
message(FATAL_ERROR "Flang does not currently support building with \
|
|
|
|
LLVM exceptions enabled. Please disable LLVM_ENABLE_EH when building \
|
|
|
|
flang.")
|
|
|
|
endif()
|
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
set(FLANG_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
2018-02-19 13:28:12 +00:00
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE)
|
|
|
|
message(FATAL_ERROR "In-source builds are not allowed. \
|
|
|
|
Please create a directory and run cmake from there,\
|
|
|
|
passing the path to this source directory as the last argument.\
|
|
|
|
This process created the file `CMakeCache.txt' and the directory\
|
|
|
|
`CMakeFiles'. Please delete them.")
|
2018-02-19 13:28:12 +00:00
|
|
|
endif()
|
2018-05-03 12:54:53 +00:00
|
|
|
|
2020-07-14 15:59:26 +00:00
|
|
|
option(FLANG_ENABLE_WERROR "Fail and stop building flang if a warning is triggered." OFF)
|
[flang] Use LLVM's flags
Summary:
The only difference is that LLVM_ENABLE_WERROR is set to OFF
by default, but we enable this in a standalone flang build
This commit fixes some windows issues with the flags
Reviewers: DavidTruby, jdoerfert, sscalpone
Reviewed By: DavidTruby, sscalpone
Subscribers: ormris, richard.barton.arm, mehdi_amini, Meinersbur, ChinouneMehdi, tskeith, mgorny, llvm-commits
Tags: #llvm, #flang
Differential Revision: https://reviews.llvm.org/D78306
2020-06-08 14:08:35 +00:00
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
# Check for a standalone build and configure as appropriate from
|
|
|
|
# there.
|
|
|
|
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
[flang] Use LLVM's flags
Summary:
The only difference is that LLVM_ENABLE_WERROR is set to OFF
by default, but we enable this in a standalone flang build
This commit fixes some windows issues with the flags
Reviewers: DavidTruby, jdoerfert, sscalpone
Reviewed By: DavidTruby, sscalpone
Subscribers: ormris, richard.barton.arm, mehdi_amini, Meinersbur, ChinouneMehdi, tskeith, mgorny, llvm-commits
Tags: #llvm, #flang
Differential Revision: https://reviews.llvm.org/D78306
2020-06-08 14:08:35 +00:00
|
|
|
message("Building Flang as a standalone project.")
|
|
|
|
project(Flang)
|
2020-06-22 04:54:28 +00:00
|
|
|
set(FLANG_STANDALONE_BUILD ON)
|
2022-01-19 06:45:07 +00:00
|
|
|
else()
|
|
|
|
set(FLANG_STANDALONE_BUILD OFF)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# Must go below project(..)
|
|
|
|
include(GNUInstallDirs)
|
2020-02-25 23:22:14 +00:00
|
|
|
|
2022-11-30 11:28:13 +00:00
|
|
|
# MSVC + clang-cl build requires clang_rt.builtin.${target} library
|
|
|
|
if (MSVC AND CMAKE_CXX_COMPILER_ID MATCHES Clang)
|
|
|
|
include(HandleCompilerRT)
|
|
|
|
find_compiler_rt_library(builtins CLANG_RT_BUILTINS_LIBRARY)
|
|
|
|
get_filename_component(LIBDIR "${CLANG_RT_BUILTINS_LIBRARY}" DIRECTORY)
|
|
|
|
if (IS_DIRECTORY "${LIBDIR}")
|
|
|
|
link_libraries(${CLANG_RT_BUILTINS_LIBRARY})
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2023-01-06 16:12:03 +00:00
|
|
|
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
|
|
|
message(FATAL_ERROR "flang isn't supported on 32 bit CPUs")
|
|
|
|
endif()
|
|
|
|
|
2022-01-19 06:45:07 +00:00
|
|
|
if (FLANG_STANDALONE_BUILD)
|
2020-02-25 23:22:14 +00:00
|
|
|
set(FLANG_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
|
2023-06-03 13:13:09 +00:00
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
2020-02-25 23:22:14 +00:00
|
|
|
if (NOT MSVC_IDE)
|
|
|
|
set(LLVM_ENABLE_ASSERTIONS ${ENABLE_ASSERTIONS}
|
|
|
|
CACHE BOOL "Enable assertions")
|
|
|
|
# Assertions follow llvm's configuration.
|
|
|
|
mark_as_advanced(LLVM_ENABLE_ASSERTIONS)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# We need a pre-built/installed version of LLVM.
|
2021-09-16 16:27:53 +00:00
|
|
|
find_package(LLVM REQUIRED HINTS "${LLVM_CMAKE_DIR}")
|
2020-09-03 11:39:29 +00:00
|
|
|
# If the user specifies a relative path to LLVM_DIR, the calls to include
|
|
|
|
# LLVM modules fail. Append the absolute path to LLVM_DIR instead.
|
|
|
|
get_filename_component(LLVM_DIR_ABSOLUTE ${LLVM_DIR} REALPATH)
|
|
|
|
list(APPEND CMAKE_MODULE_PATH ${LLVM_DIR_ABSOLUTE})
|
2018-05-03 12:54:53 +00:00
|
|
|
|
2021-07-12 08:44:38 +00:00
|
|
|
# Users might specify a path to CLANG_DIR that's:
|
|
|
|
# * a full path, or
|
|
|
|
# * a path relative to the path of this script.
|
|
|
|
# Append the absolute path to CLANG_DIR so that find_package works in both
|
|
|
|
# cases.
|
|
|
|
get_filename_component(
|
|
|
|
CLANG_DIR_ABSOLUTE
|
|
|
|
${CLANG_DIR}
|
|
|
|
REALPATH
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
list(APPEND CMAKE_MODULE_PATH ${CLANG_DIR_ABSOLUTE})
|
|
|
|
|
|
|
|
# TODO: Remove when libclangDriver is lifted out of Clang
|
|
|
|
find_package(Clang REQUIRED PATHS "${CLANG_DIR_ABSOLUTE}" NO_DEFAULT_PATH)
|
|
|
|
if (NOT Clang_FOUND)
|
|
|
|
message(FATAL_ERROR "Failed to find Clang")
|
2020-09-11 09:17:31 +00:00
|
|
|
endif()
|
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
# If LLVM links to zlib we need the imported targets so we can too.
|
|
|
|
if(LLVM_ENABLE_ZLIB)
|
|
|
|
find_package(ZLIB REQUIRED)
|
|
|
|
endif()
|
[flang] Use LLVM's flags
Summary:
The only difference is that LLVM_ENABLE_WERROR is set to OFF
by default, but we enable this in a standalone flang build
This commit fixes some windows issues with the flags
Reviewers: DavidTruby, jdoerfert, sscalpone
Reviewed By: DavidTruby, sscalpone
Subscribers: ormris, richard.barton.arm, mehdi_amini, Meinersbur, ChinouneMehdi, tskeith, mgorny, llvm-commits
Tags: #llvm, #flang
Differential Revision: https://reviews.llvm.org/D78306
2020-06-08 14:08:35 +00:00
|
|
|
option(LLVM_ENABLE_PEDANTIC "Compile with pedantic enabled." ON)
|
2020-08-11 14:20:13 +00:00
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
set(USE_NO_MAYBE_UNINITIALIZED 1)
|
|
|
|
endif()
|
2020-02-25 23:22:14 +00:00
|
|
|
|
|
|
|
include(CMakeParseArguments)
|
|
|
|
include(AddLLVM)
|
|
|
|
include(HandleLLVMOptions)
|
|
|
|
include(VersionFromVCS)
|
2021-08-20 10:25:11 +00:00
|
|
|
include(GetErrcMessages)
|
2020-02-25 23:22:14 +00:00
|
|
|
|
2021-07-12 08:44:38 +00:00
|
|
|
include(AddClang)
|
2020-10-14 16:40:29 +00:00
|
|
|
|
2021-02-10 12:53:10 +00:00
|
|
|
include(TableGen)
|
|
|
|
find_package(MLIR REQUIRED CONFIG)
|
|
|
|
# Use SYSTEM for the same reasons as for LLVM includes
|
|
|
|
include_directories(SYSTEM ${MLIR_INCLUDE_DIRS})
|
|
|
|
# If the user specifies a relative path to MLIR_DIR, the calls to include
|
|
|
|
# MLIR modules fail. Append the absolute path to MLIR_DIR instead.
|
|
|
|
get_filename_component(MLIR_DIR_ABSOLUTE ${MLIR_DIR} REALPATH)
|
|
|
|
list(APPEND CMAKE_MODULE_PATH ${MLIR_DIR_ABSOLUTE})
|
|
|
|
include(AddMLIR)
|
|
|
|
find_program(MLIR_TABLEGEN_EXE "mlir-tblgen" ${LLVM_TOOLS_BINARY_DIR}
|
|
|
|
NO_DEFAULT_PATH)
|
2020-02-25 23:22:14 +00:00
|
|
|
|
|
|
|
option(LLVM_INSTALL_TOOLCHAIN_ONLY
|
|
|
|
"Only include toolchain files in the 'install' target." OFF)
|
2023-05-17 08:28:58 +00:00
|
|
|
option(LLVM_FORCE_USE_OLD_TOOLCHAIN
|
2020-02-25 23:22:14 +00:00
|
|
|
"Set to ON to force using an old, unsupported host toolchain." OFF)
|
2020-01-14 16:20:49 +00:00
|
|
|
|
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
# Add LLVM include files as if they were SYSTEM because there are complex unused
|
|
|
|
# parameter issues that may or may not appear depending on the environments and
|
|
|
|
# compilers (ifdefs are involved). This allows warnings from LLVM headers to be
|
|
|
|
# ignored while keeping -Wunused-parameter a fatal error inside f18 code base.
|
|
|
|
# This may have to be fine-tuned if flang headers are consider part of this
|
|
|
|
# LLVM_INCLUDE_DIRS when merging in the monorepo (Warning from flang headers
|
|
|
|
# should not be suppressed).
|
|
|
|
include_directories(SYSTEM ${LLVM_INCLUDE_DIRS})
|
|
|
|
add_definitions(${LLVM_DEFINITIONS})
|
2018-05-03 12:54:53 +00:00
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
# LLVM's cmake configuration files currently sneak in a c++11 flag.
|
|
|
|
# We look for it here and remove it from Flang's compile flags to
|
|
|
|
# avoid some mixed compilation flangs (e.g. -std=c++11 ... -std=c++17).
|
|
|
|
if (DEFINED LLVM_CXX_STD)
|
|
|
|
message("LLVM configuration set a C++ standard: ${LLVM_CXX_STD}")
|
|
|
|
if (NOT LLVM_CXX_STD EQUAL "c++17")
|
|
|
|
message("Flang: Overriding LLVM's 'cxx_std' setting...")
|
|
|
|
message(" removing '-std=${LLVM_CXX_STD}'")
|
|
|
|
message(" CMAKE_CXX_FLAGS='${CMAKE_CXX_FLAGS}'")
|
|
|
|
string(REPLACE " -std=${LLVM_CXX_STD}" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
|
|
|
message(" [NEW] CMAKE_CXX_FLAGS='${CMAKE_CXX_FLAGS}'")
|
|
|
|
endif()
|
|
|
|
endif()
|
2018-05-03 12:54:53 +00:00
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
link_directories("${LLVM_LIBRARY_DIR}")
|
|
|
|
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY
|
2022-08-19 02:44:46 +00:00
|
|
|
${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX})
|
2020-02-25 23:22:14 +00:00
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY
|
2022-08-19 02:44:46 +00:00
|
|
|
${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX})
|
2020-02-25 23:22:14 +00:00
|
|
|
|
|
|
|
set(LLVM_EXTERNAL_LIT "${LLVM_TOOLS_BINARY_DIR}/llvm-lit" CACHE STRING "Command used to spawn lit")
|
|
|
|
|
|
|
|
option(FLANG_INCLUDE_TESTS
|
|
|
|
"Generate build targets for the Flang unit tests."
|
|
|
|
ON)
|
2020-06-02 17:15:44 +00:00
|
|
|
|
2021-08-20 10:25:11 +00:00
|
|
|
get_errc_messages(LLVM_LIT_ERRC_MESSAGES)
|
|
|
|
|
2020-06-02 17:15:44 +00:00
|
|
|
#Handle unittests when out-of-tree
|
|
|
|
set(FLANG_GTEST_AVAIL 0)
|
|
|
|
if (FLANG_INCLUDE_TESTS)
|
2022-11-23 12:19:47 +00:00
|
|
|
set(UNITTEST_DIR ${LLVM_THIRD_PARTY_DIR}/unittest)
|
2020-06-02 17:15:44 +00:00
|
|
|
if(EXISTS ${UNITTEST_DIR}/googletest/include/gtest/gtest.h)
|
2022-03-04 20:08:04 +00:00
|
|
|
if (NOT TARGET llvm_gtest)
|
2022-11-23 15:07:03 +00:00
|
|
|
add_subdirectory(${UNITTEST_DIR} third-party/unittest)
|
2020-06-02 17:15:44 +00:00
|
|
|
endif()
|
|
|
|
set(FLANG_GTEST_AVAIL 1)
|
|
|
|
else()
|
|
|
|
message(WARNING
|
|
|
|
"Unit-tests will be skipped as LLVM install does not include google-test related headers and libraries.")
|
|
|
|
set(FLANG_GTEST_AVAIL 0)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
if (FLANG_GTEST_AVAIL)
|
|
|
|
add_custom_target(check-all DEPENDS check-flang FlangUnitTests)
|
|
|
|
else()
|
2023-10-02 09:01:11 +00:00
|
|
|
add_custom_target(check-all DEPENDS check-flang )
|
2020-06-02 17:15:44 +00:00
|
|
|
endif()
|
2020-04-27 09:22:36 +00:00
|
|
|
if (LLVM_BUILD_DOCS)
|
|
|
|
add_custom_target(doxygen ALL)
|
|
|
|
endif()
|
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
else()
|
|
|
|
option(FLANG_INCLUDE_TESTS
|
|
|
|
"Generate build targets for the Flang unit tests."
|
|
|
|
${LLVM_INCLUDE_TESTS})
|
2020-06-02 17:15:44 +00:00
|
|
|
set(FLANG_GTEST_AVAIL 1)
|
|
|
|
|
2020-08-01 19:53:27 +00:00
|
|
|
if(FLANG_STANDALONE_BUILD)
|
|
|
|
set(FLANG_BINARY_DIR ${CMAKE_BINARY_DIR}/tools/flang)
|
|
|
|
else()
|
|
|
|
set(FLANG_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
endif()
|
|
|
|
|
2022-11-02 23:02:04 +00:00
|
|
|
set(MLIR_MAIN_SRC_DIR ${LLVM_MAIN_SRC_DIR}/../mlir ) # --src-root
|
|
|
|
set(MLIR_INCLUDE_DIR ${MLIR_MAIN_SRC_DIR}/include ) # --includedir
|
2021-02-10 12:53:10 +00:00
|
|
|
set(MLIR_TABLEGEN_OUTPUT_DIR ${CMAKE_BINARY_DIR}/tools/mlir/include)
|
|
|
|
include_directories(SYSTEM ${MLIR_INCLUDE_DIR})
|
|
|
|
include_directories(SYSTEM ${MLIR_TABLEGEN_OUTPUT_DIR})
|
2020-02-25 23:22:14 +00:00
|
|
|
endif()
|
[cmake] Don't export `LLVM_TOOLS_INSTALL_DIR` anymore
First of all, `LLVM_TOOLS_INSTALL_DIR` put there breaks our NixOS
builds, because `LLVM_TOOLS_INSTALL_DIR` defined the same as
`CMAKE_INSTALL_BINDIR` becomes an *absolute* path, and then when
downstream projects try to install there too this breaks because our
builds always install to fresh directories for isolation's sake.
Second of all, note that `LLVM_TOOLS_INSTALL_DIR` stands out against the
other specially crafted `LLVM_CONFIG_*` variables substituted in
`llvm/cmake/modules/LLVMConfig.cmake.in`.
@beanz added it in d0e1c2a550ef348aae036d0fe78cab6f038c420c to fix a
dangling reference in `AddLLVM`, but I am suspicious of how this
variable doesn't follow the pattern.
Those other ones are carefully made to be build-time vs install-time
variables depending on which `LLVMConfig.cmake` is being generated, are
carefully made relative as appropriate, etc. etc. For my NixOS use-case
they are also fine because they are never used as downstream install
variables, only for reading not writing.
To avoid the problems I face, and restore symmetry, I deleted the
exported and arranged to have many `${project}_TOOLS_INSTALL_DIR`s.
`AddLLVM` now instead expects each project to define its own, and they
do so based on `CMAKE_INSTALL_BINDIR`. `LLVMConfig` still exports
`LLVM_TOOLS_BINARY_DIR` which is the location for the tools defined in
the usual way, matching the other remaining exported variables.
For the `AddLLVM` changes, I tried to copy the existing pattern of
internal vs non-internal or for LLVM vs for downstream function/macro
names, but it would good to confirm I did that correctly.
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D117977
2022-06-11 06:11:59 +00:00
|
|
|
|
|
|
|
set(FLANG_TOOLS_INSTALL_DIR "${CMAKE_INSTALL_BINDIR}" CACHE PATH
|
|
|
|
"Path for binary subdirectory (defaults to '${CMAKE_INSTALL_BINDIR}')")
|
|
|
|
mark_as_advanced(FLANG_TOOLS_INSTALL_DIR)
|
|
|
|
|
2021-03-15 15:02:58 +00:00
|
|
|
set(FLANG_INTRINSIC_MODULES_DIR ${CMAKE_BINARY_DIR}/include/flang)
|
2021-05-10 23:41:29 +00:00
|
|
|
set(FLANG_INCLUDE_DIR ${FLANG_BINARY_DIR}/include)
|
2020-01-14 16:20:49 +00:00
|
|
|
|
2021-07-12 08:44:38 +00:00
|
|
|
# TODO: Remove when libclangDriver is lifted out of Clang
|
|
|
|
if(FLANG_STANDALONE_BUILD)
|
|
|
|
set(CLANG_INCLUDE_DIR ${CLANG_INCLUDE_DIRS} )
|
|
|
|
# No need to specify TableGen output dir as that's embedded in CLANG_DIR
|
|
|
|
else()
|
|
|
|
set(CLANG_INCLUDE_DIR ${LLVM_MAIN_SRC_DIR}/../clang/include )
|
|
|
|
# Specify TableGen output dir for things like DiagnosticCommonKinds.inc,
|
|
|
|
# DiagnosticDriverKinds.inc (required for reporting diagnostics)
|
|
|
|
set(CLANG_TABLEGEN_OUTPUT_DIR ${CMAKE_BINARY_DIR}/tools/clang/include)
|
|
|
|
include_directories(SYSTEM ${CLANG_TABLEGEN_OUTPUT_DIR})
|
2020-09-11 09:17:31 +00:00
|
|
|
endif()
|
2021-07-12 08:44:38 +00:00
|
|
|
include_directories(SYSTEM ${CLANG_INCLUDE_DIR})
|
2020-09-11 09:17:31 +00:00
|
|
|
|
2021-02-10 12:53:10 +00:00
|
|
|
# tco tool and FIR lib output directories
|
|
|
|
if(FLANG_STANDALONE_BUILD)
|
|
|
|
set(LLVM_RUNTIME_OUTPUT_INTDIR ${CMAKE_BINARY_DIR}/bin)
|
|
|
|
set(LLVM_LIBRARY_OUTPUT_INTDIR ${CMAKE_BINARY_DIR}/lib)
|
2019-03-13 19:41:15 +00:00
|
|
|
endif()
|
2021-02-10 12:53:10 +00:00
|
|
|
# Always build tco tool
|
|
|
|
set(LLVM_BUILD_TOOLS ON)
|
2018-02-19 13:28:12 +00:00
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
include_directories(BEFORE
|
|
|
|
${FLANG_BINARY_DIR}/include
|
|
|
|
${FLANG_SOURCE_DIR}/include)
|
|
|
|
|
2021-05-12 19:59:23 +00:00
|
|
|
# Add Flang-centric modules to cmake path.
|
2021-04-04 17:02:18 +00:00
|
|
|
list(INSERT CMAKE_MODULE_PATH 0
|
|
|
|
"${FLANG_SOURCE_DIR}/cmake/modules"
|
2022-01-01 17:51:16 +00:00
|
|
|
"${LLVM_COMMON_CMAKE_UTILS}/Modules"
|
2021-04-04 17:02:18 +00:00
|
|
|
)
|
2021-05-12 19:59:23 +00:00
|
|
|
include(AddFlang)
|
2020-02-25 23:22:14 +00:00
|
|
|
|
|
|
|
if (NOT DEFAULT_SYSROOT)
|
|
|
|
set(DEFAULT_SYSROOT "" CACHE PATH
|
|
|
|
"The <path> to use for the system root for all compiler invocations (--sysroot=<path>).")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (NOT ENABLE_LINKER_BUILD_ID)
|
|
|
|
set(ENABLE_LINKER_BUILD_ID OFF CACHE BOOL "pass --build-id to ld")
|
2018-02-19 13:28:12 +00:00
|
|
|
endif()
|
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
set(FLANG_DEFAULT_LINKER "" CACHE STRING
|
|
|
|
"Default linker to use (linker name or absolute path, empty for platform default)")
|
|
|
|
|
|
|
|
set(FLANG_DEFAULT_RTLIB "" CACHE STRING
|
|
|
|
"Default Fortran runtime library to use (\"libFortranRuntime\"), leave empty for platform default.")
|
|
|
|
|
|
|
|
if (NOT(FLANG_DEFAULT_RTLIB STREQUAL ""))
|
|
|
|
message(WARNING "Resetting Flang's default runtime library to use platform default.")
|
|
|
|
set(FLANG_DEFAULT_RTLIB "" CACHE STRING
|
|
|
|
"Default runtime library to use (empty for platform default)" FORCE)
|
|
|
|
endif()
|
|
|
|
|
2023-10-20 16:00:51 +00:00
|
|
|
|
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}")
|
[flang] Put ISO_Fortran_binding.h where it can be easily used (#70129)
The update stems from the discussion in
https://discourse.llvm.org/t/adding-flang-specific-header-files-to-clang/72442
This is my third attempt at this. My second attempt was in pull request
#69121.
This is my second attempt at this. My first attempt was in pull request
#68756.
This pull request has three changes from the second one:
- I put the test into the Driver directory rather than Examples so that
it would get run without require the define LLVM_BUILD_EXAMPLES.
- When installing ISO_Fortran_binding.h, I changed the location where it
was installed from.
- I changed the test so that it would work when flang was built with
shared libraries.
Here's the information from my previous attempts:
I decided to put ISO_Fortran_binding.h in a place where it would be
accessible with the include: "#include<ISO_Fortran_binding.h>" rather
than "#include<fortran/ISO_Fortran_binding.h>" because this is what
gfortran implements.
Note that the file is also installed into ".../include/flang", so if a
user wanted to access the file from a compiler other than clang, it
would be available.
I added a test in ".../flang/test/Driver". To make the test work, I also
needed to put ISO_Fortran_binding.h into the build area.
Although the flang project depends on clang, clang may not always be
available in a flang build. For example, when building just the
"check-flang" target, the "clang" executable may not be available at the
time the new test gets run. To account for this, I made the test's
script check for the existence of the "clang" executable. If "clang" is
not available, it simply prints "PASS". If it is available, it fully
builds and executes the test. On success, this will also print "PASS"
2023-10-30 13:44:09 +00:00
|
|
|
if (NOT PACKAGE_VERSION)
|
|
|
|
set(PACKAGE_VERSION ${LLVM_VERSION_MAJOR})
|
|
|
|
endif()
|
2023-10-20 16:00:51 +00:00
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
|
|
|
|
if (NOT DEFINED FLANG_VERSION_MAJOR)
|
|
|
|
set(FLANG_VERSION_MAJOR ${LLVM_VERSION_MAJOR})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (NOT DEFINED FLANG_VERSION_MINOR)
|
|
|
|
set(FLANG_VERSION_MINOR ${LLVM_VERSION_MINOR})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (NOT DEFINED FLANG_VERSION_PATCHLEVEL)
|
|
|
|
set(FLANG_VERSION_PATCHLEVEL ${LLVM_VERSION_PATCH})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# Unlike PACKAGE_VERSION, FLANG_VERSION does not include LLVM_VERSION_SUFFIX.
|
2018-02-19 13:28:12 +00:00
|
|
|
set(FLANG_VERSION "${FLANG_VERSION_MAJOR}.${FLANG_VERSION_MINOR}.${FLANG_VERSION_PATCHLEVEL}")
|
2020-02-25 23:22:14 +00:00
|
|
|
message(STATUS "Flang version: ${FLANG_VERSION}")
|
|
|
|
# Flang executable version information
|
|
|
|
set(FLANG_EXECUTABLE_VERSION
|
|
|
|
"${FLANG_VERSION_MAJOR}" CACHE STRING
|
|
|
|
"Major version number to appended to the flang executable name.")
|
|
|
|
set(LIBFLANG_LIBRARY_VERSION
|
|
|
|
"${FLANG_VERSION_MAJOR}" CACHE STRING
|
|
|
|
"Major version number to appended to the libflang library.")
|
2018-02-19 13:28:12 +00:00
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
mark_as_advanced(FLANG_EXECUTABLE_VERSION LIBFLANG_LIBRARY_VERSION)
|
2018-02-19 13:28:12 +00:00
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
set(FLANG_VENDOR ${PACKAGE_VENDOR} CACHE STRING
|
|
|
|
"Vendor-specific Flang version information.")
|
|
|
|
set(FLANG_VENDOR_UTI "org.llvm.flang" CACHE STRING
|
|
|
|
"Vendor-specific uti.")
|
2018-02-19 13:28:12 +00:00
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
if (FLANG_VENDOR)
|
|
|
|
add_definitions(-DFLANG_VENDOR="${FLANG_VENDOR} ")
|
|
|
|
endif()
|
2018-06-14 20:43:02 +00:00
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
set(FLANG_REPOSITORY_STRING "" CACHE STRING
|
|
|
|
"Vendor-specific text for showing the repository the source is taken from.")
|
|
|
|
if (FLANG_REPOSITORY_STRING)
|
|
|
|
add_definitions(-DFLANG_REPOSITORY_STRING="${FLANG_REPOSITORY_STRING}")
|
|
|
|
endif()
|
2018-02-19 13:28:12 +00:00
|
|
|
|
2021-09-03 19:48:40 +00:00
|
|
|
include(TestBigEndian)
|
|
|
|
test_big_endian(IS_BIGENDIAN)
|
|
|
|
if (IS_BIGENDIAN)
|
|
|
|
add_compile_definitions(FLANG_BIG_ENDIAN=1)
|
|
|
|
else ()
|
|
|
|
add_compile_definitions(FLANG_LITTLE_ENDIAN=1)
|
|
|
|
endif ()
|
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
# Configure Flang's Version.inc file.
|
|
|
|
configure_file(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include/flang/Version.inc.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/include/flang/Version.inc)
|
|
|
|
# Configure Flang's version info header file.
|
2018-02-19 13:28:12 +00:00
|
|
|
configure_file(
|
|
|
|
${FLANG_SOURCE_DIR}/include/flang/Config/config.h.cmake
|
|
|
|
${FLANG_BINARY_DIR}/include/flang/Config/config.h)
|
2020-02-25 23:22:14 +00:00
|
|
|
|
[flang] Use LLVM's flags
Summary:
The only difference is that LLVM_ENABLE_WERROR is set to OFF
by default, but we enable this in a standalone flang build
This commit fixes some windows issues with the flags
Reviewers: DavidTruby, jdoerfert, sscalpone
Reviewed By: DavidTruby, sscalpone
Subscribers: ormris, richard.barton.arm, mehdi_amini, Meinersbur, ChinouneMehdi, tskeith, mgorny, llvm-commits
Tags: #llvm, #flang
Differential Revision: https://reviews.llvm.org/D78306
2020-06-08 14:08:35 +00:00
|
|
|
if (FLANG_ENABLE_WERROR)
|
|
|
|
# The following is taken from llvm/cmake/modules/HandleLLVMOptions.cmake
|
|
|
|
# Keep this up-to-date with that file
|
|
|
|
if( MSVC )
|
|
|
|
append("/WX" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
|
|
|
|
endif()
|
|
|
|
if ( LLVM_COMPILER_IS_GCC_COMPATIBLE )
|
|
|
|
append("-Werror" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
|
|
|
|
append("-Wno-error" CMAKE_REQUIRED_FLAGS)
|
|
|
|
endif( LLVM_COMPILER_IS_GCC_COMPATIBLE )
|
|
|
|
endif()
|
2020-02-25 23:22:14 +00:00
|
|
|
|
|
|
|
# Builtin check_cxx_compiler_flag doesn't seem to work correctly
|
|
|
|
macro(check_compiler_flag flag resultVar)
|
|
|
|
unset(${resultVar} CACHE)
|
|
|
|
check_cxx_compiler_flag("${flag}" ${resultVar})
|
|
|
|
endmacro()
|
|
|
|
|
|
|
|
check_compiler_flag("-Werror -Wno-deprecated-copy" CXX_SUPPORTS_NO_DEPRECATED_COPY_FLAG)
|
|
|
|
if (CXX_SUPPORTS_NO_DEPRECATED_COPY_FLAG)
|
[flang] Use LLVM's flags
Summary:
The only difference is that LLVM_ENABLE_WERROR is set to OFF
by default, but we enable this in a standalone flang build
This commit fixes some windows issues with the flags
Reviewers: DavidTruby, jdoerfert, sscalpone
Reviewed By: DavidTruby, sscalpone
Subscribers: ormris, richard.barton.arm, mehdi_amini, Meinersbur, ChinouneMehdi, tskeith, mgorny, llvm-commits
Tags: #llvm, #flang
Differential Revision: https://reviews.llvm.org/D78306
2020-06-08 14:08:35 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-copy")
|
2020-02-25 23:22:14 +00:00
|
|
|
endif()
|
|
|
|
check_compiler_flag("-Wstring-conversion" CXX_SUPPORTS_NO_STRING_CONVERSION_FLAG)
|
|
|
|
if (CXX_SUPPORTS_NO_STRING_CONVERSION_FLAG)
|
[flang] Use LLVM's flags
Summary:
The only difference is that LLVM_ENABLE_WERROR is set to OFF
by default, but we enable this in a standalone flang build
This commit fixes some windows issues with the flags
Reviewers: DavidTruby, jdoerfert, sscalpone
Reviewed By: DavidTruby, sscalpone
Subscribers: ormris, richard.barton.arm, mehdi_amini, Meinersbur, ChinouneMehdi, tskeith, mgorny, llvm-commits
Tags: #llvm, #flang
Differential Revision: https://reviews.llvm.org/D78306
2020-06-08 14:08:35 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-string-conversion")
|
2020-02-25 23:22:14 +00:00
|
|
|
endif()
|
2022-08-16 17:42:45 +00:00
|
|
|
check_compiler_flag("-Wno-ctad-maybe-unsupported" CXX_SUPPORTS_NO_CTAD_MAYBE_UNSUPPORTED_FLAG)
|
|
|
|
if (CXX_SUPPORTS_NO_CTAD_MAYBE_UNSUPPORTED_FLAG)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-ctad-maybe-unsupported")
|
|
|
|
endif()
|
2020-02-25 23:22:14 +00:00
|
|
|
|
|
|
|
# Add appropriate flags for GCC
|
|
|
|
if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
|
|
|
|
|
|
|
|
if (NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing -fno-semantic-interposition")
|
|
|
|
else()
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-command-line-argument -Wstring-conversion \
|
|
|
|
-Wcovered-switch-default")
|
|
|
|
endif() # Clang.
|
|
|
|
|
|
|
|
check_cxx_compiler_flag("-Werror -Wnested-anon-types" CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG)
|
|
|
|
if (CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-nested-anon-types")
|
|
|
|
endif()
|
|
|
|
|
2020-05-29 13:03:21 +00:00
|
|
|
# Add to build type flags.
|
2020-02-25 23:22:14 +00:00
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUGF18")
|
2020-05-29 13:03:21 +00:00
|
|
|
set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} -DCHECK=\"(void)\"")
|
2020-02-25 23:22:14 +00:00
|
|
|
|
|
|
|
# Building shared libraries is bad for performance with GCC by default
|
|
|
|
# due to the need to preserve the right to override external entry points
|
|
|
|
if (BUILD_SHARED_LIBS AND NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
|
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fno-semantic-interposition")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
list(REMOVE_DUPLICATES CMAKE_CXX_FLAGS)
|
|
|
|
|
|
|
|
# Determine HOST_LINK_VERSION on Darwin.
|
|
|
|
set(HOST_LINK_VERSION)
|
|
|
|
if (APPLE)
|
|
|
|
set(LD_V_OUTPUT)
|
|
|
|
execute_process(
|
|
|
|
COMMAND sh -c "${CMAKE_LINKER} -v 2>&1 | head -1"
|
|
|
|
RESULT_VARIABLE HAD_ERROR
|
|
|
|
OUTPUT_VARIABLE LD_V_OUTPUT)
|
|
|
|
if (NOT HAD_ERROR)
|
|
|
|
if ("${LD_V_OUTPUT}" MATCHES ".*ld64-([0-9.]+).*")
|
|
|
|
string(REGEX REPLACE ".*ld64-([0-9.]+).*" "\\1" HOST_LINK_VERSION ${LD_V_OUTPUT})
|
|
|
|
elseif ("${LD_V_OUTPUT}" MATCHES "[^0-9]*([0-9.]+).*")
|
|
|
|
string(REGEX REPLACE "[^0-9]*([0-9.]+).*" "\\1" HOST_LINK_VERSION ${LD_V_OUTPUT})
|
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
message(FATAL_ERROR "${CMAKE_LINKER} failed with status ${HAD_ERROR}")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include(CMakeParseArguments)
|
|
|
|
include(AddFlang)
|
|
|
|
|
2022-11-02 22:39:58 +00:00
|
|
|
if (FLANG_INCLUDE_TESTS)
|
|
|
|
add_compile_definitions(FLANG_INCLUDE_TESTS=1)
|
|
|
|
endif()
|
2021-07-01 08:27:31 +00:00
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
add_subdirectory(include)
|
|
|
|
add_subdirectory(lib)
|
|
|
|
add_subdirectory(cmake/modules)
|
|
|
|
|
|
|
|
option(FLANG_BUILD_TOOLS
|
|
|
|
"Build the Flang tools. If OFF, just generate build targets." ON)
|
|
|
|
if (FLANG_BUILD_TOOLS)
|
|
|
|
add_subdirectory(tools)
|
|
|
|
endif()
|
2023-10-02 09:01:11 +00:00
|
|
|
add_subdirectory(runtime)
|
2021-08-12 10:42:08 +00:00
|
|
|
|
2023-03-13 21:50:13 +00:00
|
|
|
if (LLVM_INCLUDE_EXAMPLES)
|
|
|
|
add_subdirectory(examples)
|
2021-08-12 16:11:54 +00:00
|
|
|
endif()
|
2020-02-25 23:22:14 +00:00
|
|
|
|
|
|
|
if (FLANG_INCLUDE_TESTS)
|
|
|
|
add_subdirectory(test)
|
2020-06-02 17:15:44 +00:00
|
|
|
if (FLANG_GTEST_AVAIL)
|
|
|
|
add_subdirectory(unittests)
|
|
|
|
endif ()
|
2020-02-25 23:22:14 +00:00
|
|
|
endif()
|
|
|
|
|
2020-04-27 09:22:36 +00:00
|
|
|
option(FLANG_INCLUDE_DOCS "Generate build targets for the Flang docs."
|
|
|
|
${LLVM_INCLUDE_DOCS})
|
|
|
|
if (FLANG_INCLUDE_DOCS)
|
|
|
|
add_subdirectory(docs)
|
|
|
|
endif()
|
2020-02-25 23:22:14 +00:00
|
|
|
|
|
|
|
# Custom target to install Flang libraries.
|
|
|
|
add_custom_target(flang-libraries)
|
|
|
|
set_target_properties(flang-libraries PROPERTIES FOLDER "Misc")
|
|
|
|
|
|
|
|
if (NOT LLVM_ENABLE_IDE)
|
|
|
|
add_llvm_install_targets(install-flang-libraries
|
|
|
|
DEPENDS flang-libraries
|
|
|
|
COMPONENT flang-libraries)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
get_property(FLANG_LIBS GLOBAL PROPERTY FLANG_LIBS)
|
|
|
|
if (FLANG_LIBS)
|
|
|
|
list(REMOVE_DUPLICATES FLANG_LIBS)
|
|
|
|
foreach(lib ${FLANG_LIBS})
|
|
|
|
add_dependencies(flang-libraries ${lib})
|
|
|
|
if (NOT LLVM_ENABLE_IDE)
|
|
|
|
add_dependencies(install-flang-libraries install-${lib})
|
|
|
|
endif()
|
|
|
|
endforeach()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
|
2024-01-16 17:04:52 +00:00
|
|
|
add_llvm_install_targets(install-flang-headers
|
|
|
|
COMPONENT flang-headers)
|
|
|
|
|
2020-02-25 23:22:14 +00:00
|
|
|
install(DIRECTORY include/flang
|
2021-04-04 17:02:18 +00:00
|
|
|
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
|
2020-02-25 23:22:14 +00:00
|
|
|
COMPONENT flang-headers
|
|
|
|
FILES_MATCHING
|
|
|
|
PATTERN "*.def"
|
|
|
|
PATTERN "*.h"
|
|
|
|
PATTERN "*.inc"
|
|
|
|
PATTERN "*.td"
|
|
|
|
PATTERN "config.h" EXCLUDE
|
|
|
|
PATTERN ".git" EXCLUDE
|
|
|
|
PATTERN "CMakeFiles" EXCLUDE)
|
2022-03-04 20:08:04 +00:00
|
|
|
|
2021-05-10 23:41:29 +00:00
|
|
|
install(DIRECTORY ${FLANG_INCLUDE_DIR}/flang
|
2021-04-04 17:02:18 +00:00
|
|
|
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
|
2021-05-10 23:41:29 +00:00
|
|
|
COMPONENT flang-headers
|
|
|
|
FILES_MATCHING
|
|
|
|
PATTERN "*.inc"
|
|
|
|
)
|
2020-02-25 23:22:14 +00:00
|
|
|
endif()
|
[flang] Put ISO_Fortran_binding.h where it can be easily used (#70129)
The update stems from the discussion in
https://discourse.llvm.org/t/adding-flang-specific-header-files-to-clang/72442
This is my third attempt at this. My second attempt was in pull request
#69121.
This is my second attempt at this. My first attempt was in pull request
#68756.
This pull request has three changes from the second one:
- I put the test into the Driver directory rather than Examples so that
it would get run without require the define LLVM_BUILD_EXAMPLES.
- When installing ISO_Fortran_binding.h, I changed the location where it
was installed from.
- I changed the test so that it would work when flang was built with
shared libraries.
Here's the information from my previous attempts:
I decided to put ISO_Fortran_binding.h in a place where it would be
accessible with the include: "#include<ISO_Fortran_binding.h>" rather
than "#include<fortran/ISO_Fortran_binding.h>" because this is what
gfortran implements.
Note that the file is also installed into ".../include/flang", so if a
user wanted to access the file from a compiler other than clang, it
would be available.
I added a test in ".../flang/test/Driver". To make the test work, I also
needed to put ISO_Fortran_binding.h into the build area.
Although the flang project depends on clang, clang may not always be
available in a flang build. For example, when building just the
"check-flang" target, the "clang" executable may not be available at the
time the new test gets run. To account for this, I made the test's
script check for the existence of the "clang" executable. If "clang" is
not available, it simply prints "PASS". If it is available, it fully
builds and executes the test. On success, this will also print "PASS"
2023-10-30 13:44:09 +00:00
|
|
|
|
|
|
|
# Put ISO_Fortran_binding.h into the include files of the build area now
|
|
|
|
# so that we can run tests before installing
|
|
|
|
include(GetClangResourceDir)
|
|
|
|
get_clang_resource_dir(HEADER_BINARY_DIR PREFIX ${LLVM_LIBRARY_OUTPUT_INTDIR}/.. SUBDIR include)
|
|
|
|
configure_file(
|
|
|
|
${FLANG_SOURCE_DIR}/include/flang/ISO_Fortran_binding.h
|
|
|
|
${HEADER_BINARY_DIR}/ISO_Fortran_binding.h)
|
|
|
|
|
|
|
|
# And also install it into the install area
|
|
|
|
get_clang_resource_dir(HEADER_INSTALL_DIR SUBDIR include)
|
|
|
|
install(
|
|
|
|
FILES include/flang/ISO_Fortran_binding.h
|
|
|
|
DESTINATION ${HEADER_INSTALL_DIR} )
|