1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

Rename CMAKE_USE_MACH_PARSER to CMake_USE_MACH_PARSER

We use the `CMake_` prefix for options affecting CMake itself.
This commit is contained in:
Brad King
2021-02-01 13:31:02 -05:00
parent b6071c93f5
commit cdcfe3eb99
4 changed files with 7 additions and 7 deletions

View File

@@ -54,7 +54,7 @@ if(NOT CMake_DEFAULT_RECURSION_LIMIT)
endif()
if(APPLE)
set(CMAKE_USE_MACH_PARSER 1)
set(CMake_USE_MACH_PARSER 1)
endif()
set(EXECUTABLE_OUTPUT_PATH ${CMake_BIN_DIR})
@@ -113,7 +113,7 @@ if(CMake_USE_ELF_PARSER)
endif()
# Check if we can build the Mach-O parser.
if(CMAKE_USE_MACH_PARSER)
if(CMake_USE_MACH_PARSER)
set(MACH_SRCS cmMachO.h cmMachO.cxx)
endif()

View File

@@ -17,7 +17,7 @@
#cmakedefine HAVE_ENVIRON_NOT_REQUIRE_PROTOTYPE
#cmakedefine HAVE_UNSETENV
#cmakedefine CMake_USE_ELF_PARSER
#cmakedefine CMAKE_USE_MACH_PARSER
#cmakedefine CMake_USE_MACH_PARSER
#define CMake_DEFAULT_RECURSION_LIMIT @CMake_DEFAULT_RECURSION_LIMIT@
#define CMAKE_BIN_DIR "/@CMAKE_BIN_DIR@"
#define CMAKE_DATA_DIR "/@CMAKE_DATA_DIR@"

View File

@@ -7,8 +7,8 @@
#include <iosfwd>
#include <string>
#if !defined(CMAKE_USE_MACH_PARSER)
# error "This file may be included only if CMAKE_USE_MACH_PARSER is enabled."
#if !defined(CMake_USE_MACH_PARSER)
# error "This file may be included only if CMake_USE_MACH_PARSER is enabled."
#endif
class cmMachOInternal;

View File

@@ -49,7 +49,7 @@
# include "cmELF.h"
#endif
#if defined(CMAKE_USE_MACH_PARSER)
#if defined(CMake_USE_MACH_PARSER)
# include "cmMachO.h"
#endif
@@ -2347,7 +2347,7 @@ bool cmSystemTools::GuessLibrarySOName(std::string const& fullPath,
bool cmSystemTools::GuessLibraryInstallName(std::string const& fullPath,
std::string& soname)
{
#if defined(CMAKE_USE_MACH_PARSER)
#if defined(CMake_USE_MACH_PARSER)
cmMachO macho(fullPath.c_str());
if (macho) {
return macho.GetInstallName(soname);