CMakeCommonLanguageInclude.cmake 1.1 KB

1234567891011121314151617181920212223
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. # this file has flags that are shared across languages and sets
  4. # cache values that can be initialized in the platform-compiler.cmake file
  5. # it may be included by more than one language.
  6. string(APPEND CMAKE_EXE_LINKER_FLAGS_INIT " $ENV{LDFLAGS}")
  7. string(APPEND CMAKE_SHARED_LINKER_FLAGS_INIT " $ENV{LDFLAGS}")
  8. string(APPEND CMAKE_MODULE_LINKER_FLAGS_INIT " $ENV{LDFLAGS}")
  9. cmake_initialize_per_config_variable(CMAKE_EXE_LINKER_FLAGS "Flags used by the linker")
  10. cmake_initialize_per_config_variable(CMAKE_SHARED_LINKER_FLAGS "Flags used by the linker during the creation of shared libraries")
  11. cmake_initialize_per_config_variable(CMAKE_MODULE_LINKER_FLAGS "Flags used by the linker during the creation of modules")
  12. cmake_initialize_per_config_variable(CMAKE_STATIC_LINKER_FLAGS "Flags used by the linker during the creation of static libraries")
  13. # Alias the build tool variable for backward compatibility.
  14. set(CMAKE_BUILD_TOOL ${CMAKE_MAKE_PROGRAM})
  15. mark_as_advanced(
  16. CMAKE_VERBOSE_MAKEFILE
  17. )