Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gnaggnoyil
CMake
Commits
9dff5d9a
Commit
9dff5d9a
authored
9 years ago
by
Brad King
Browse files
Options
Downloads
Plain Diff
Merge branch 'de-deprecate-CMakeForceCompiler' into release
parents
229a5bc9
beaa4fa5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Help/release/3.5.rst
+0
-3
0 additions, 3 deletions
Help/release/3.5.rst
Modules/CMakeForceCompiler.cmake
+9
-7
9 additions, 7 deletions
Modules/CMakeForceCompiler.cmake
with
9 additions
and
10 deletions
Help/release/3.5.rst
+
0
−
3
View file @
9dff5d9a
...
...
@@ -159,9 +159,6 @@ Other
Deprecated and Removed Features
===============================
* The :module:`CMakeForceCompiler` module and its macros are now deprecated.
See module documentation for an explanation.
* The :manual:`cmake(1)` ``-E time`` command now properly passes arguments
with spaces or special characters through to the child process. This
may break scripts that worked around the bug with their own extra
...
...
This diff is collapsed.
Click to expand it.
Modules/CMakeForceCompiler.cmake
+
9
−
7
View file @
9dff5d9a
...
...
@@ -2,7 +2,9 @@
# CMakeForceCompiler
# ------------------
#
# Deprecated. Do not use.
# Discouraged. Avoid using this module if possible. It will be deprecated
# by a future version of CMake once alternatives have been provided for all
# toolchain file use cases.
#
# The macros provided by this module were once intended for use by
# cross-compiling toolchain files when CMake was not able to automatically
...
...
@@ -12,6 +14,12 @@
# CMake detects from a compiler is now too extensive to be provided by
# toolchain files using these macros.
#
# The only known remaining use case for these macros is to write toolchain
# files for cross-compilers that cannot link binaries without special flags or
# custom linker scripts. These macros cause CMake to skip checks it normally
# performs as part of enabling a language and introspecting the toolchain.
# However, skipping these checks may limit some generation functionality.
#
# -------------------------------------------------------------------------
#
# Macro CMAKE_FORCE_C_COMPILER has the following signature:
...
...
@@ -70,8 +78,6 @@
# License text for the above reference.)
macro
(
CMAKE_FORCE_C_COMPILER compiler id
)
message
(
DEPRECATION
"The CMAKE_FORCE_C_COMPILER macro is deprecated. "
"Instead just set CMAKE_C_COMPILER and allow CMake to identify the compiler."
)
set
(
CMAKE_C_COMPILER
"
${
compiler
}
"
)
set
(
CMAKE_C_COMPILER_ID_RUN TRUE
)
set
(
CMAKE_C_COMPILER_ID
${
id
}
)
...
...
@@ -84,8 +90,6 @@ macro(CMAKE_FORCE_C_COMPILER compiler id)
endmacro
()
macro
(
CMAKE_FORCE_CXX_COMPILER compiler id
)
message
(
DEPRECATION
"The CMAKE_FORCE_CXX_COMPILER macro is deprecated. "
"Instead just set CMAKE_CXX_COMPILER and allow CMake to identify the compiler."
)
set
(
CMAKE_CXX_COMPILER
"
${
compiler
}
"
)
set
(
CMAKE_CXX_COMPILER_ID_RUN TRUE
)
set
(
CMAKE_CXX_COMPILER_ID
${
id
}
)
...
...
@@ -98,8 +102,6 @@ macro(CMAKE_FORCE_CXX_COMPILER compiler id)
endmacro
()
macro
(
CMAKE_FORCE_Fortran_COMPILER compiler id
)
message
(
DEPRECATION
"The CMAKE_FORCE_Fortran_COMPILER macro is deprecated. "
"Instead just set CMAKE_Fortran_COMPILER and allow CMake to identify the compiler."
)
set
(
CMAKE_Fortran_COMPILER
"
${
compiler
}
"
)
set
(
CMAKE_Fortran_COMPILER_ID_RUN TRUE
)
set
(
CMAKE_Fortran_COMPILER_ID
${
id
}
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment