Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
d9a74e1b
Commit
d9a74e1b
authored
Feb 14, 2003
by
Bill Hoffman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: move full path compiler to internal and not just advanced
parent
ae5a80c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Modules/CMakeDetermineCCompiler.cmake
Modules/CMakeDetermineCCompiler.cmake
+2
-1
Modules/CMakeDetermineCXXCompiler.cmake
Modules/CMakeDetermineCXXCompiler.cmake
+1
-1
No files found.
Modules/CMakeDetermineCCompiler.cmake
View file @
d9a74e1b
...
...
@@ -31,6 +31,7 @@ IF(NOT CMAKE_C_COMPILER)
FIND_PROGRAM
(
CMAKE_C_COMPILER_FULLPATH NAMES
${
CMAKE_C_COMPILER_LIST
}
)
GET_FILENAME_COMPONENT
(
CMAKE_C_COMPILER_INIT
${
CMAKE_C_COMPILER_FULLPATH
}
NAME
)
SET
(
CMAKE_C_COMPILER_FULLPATH
"
${
CMAKE_C_COMPILER_FULLPATH
}
"
CACHE INTERNAL
"full path to the compiler cmake found"
)
ENDIF
(
NOT CMAKE_C_COMPILER_INIT
)
SET
(
CMAKE_C_COMPILER
${
CMAKE_C_COMPILER_INIT
}
CACHE STRING
"C compiler"
)
...
...
@@ -57,4 +58,4 @@ ENDIF(NOT CMAKE_COMPILER_RETURN)
# configure variables set in this file for fast reload later on
CONFIGURE_FILE
(
${
CMAKE_ROOT
}
/Modules/CMakeCCompiler.cmake.in
${
CMAKE_BINARY_DIR
}
/CMakeCCompiler.cmake IMMEDIATE
)
MARK_AS_ADVANCED
(
CMAKE_AR
CMAKE_C_COMPILER_FULLPATH
)
MARK_AS_ADVANCED
(
CMAKE_AR
)
Modules/CMakeDetermineCXXCompiler.cmake
View file @
d9a74e1b
...
...
@@ -31,6 +31,7 @@ IF(NOT CMAKE_CXX_COMPILER)
FIND_PROGRAM
(
CMAKE_CXX_COMPILER_FULLPATH NAMES
${
CMAKE_CXX_COMPILER_LIST
}
)
GET_FILENAME_COMPONENT
(
CMAKE_CXX_COMPILER_INIT
${
CMAKE_CXX_COMPILER_FULLPATH
}
NAME
)
SET
(
CMAKE_CXX_COMPILER_FULLPATH
"
${
CMAKE_CXX_COMPILER_FULLPATH
}
"
CACHE INTERNAL
"full path to the compiler cmake found"
)
ENDIF
(
NOT CMAKE_CXX_COMPILER_INIT
)
SET
(
CMAKE_CXX_COMPILER
${
CMAKE_CXX_COMPILER_INIT
}
CACHE STRING
"C++ compiler"
)
...
...
@@ -49,7 +50,6 @@ ENDIF(NOT CMAKE_COMPILER_RETURN)
# configure all variables set in this file
CONFIGURE_FILE
(
${
CMAKE_ROOT
}
/Modules/CMakeCXXCompiler.cmake.in
${
CMAKE_BINARY_DIR
}
/CMakeCXXCompiler.cmake IMMEDIATE
)
MARK_AS_ADVANCED
(
CMAKE_CXX_COMPILER_FULLPATH
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment