Skip to content
Snippets Groups Projects
Forked from CMake / CMake
17684 commits behind the upstream repository.
Robert Maynard's avatar
Robert Maynard authored
The original regular expression was greedy and would match any
environment variable ending with `TOP` (like `DESKTOP`). This is an
issue on windows where `nvcc -v` would output all environment variables
before the compiler's verbose output.

To resolve this issue we use a tighter match algorithm that looks
for `#$ TOP=` instead of `TOP=`.

Fixes: #22158
5e931c5a
History
Name Last commit Last update
..
AndroidTestUtilities
CMakeAddFortranSubdirectory
CheckIPOSupported
Compiler
CompilerId
FetchContent
FindCUDA
FindMPI
FindPython
FortranCInterface
IntelVSImplicitPath
Internal
Platform
UseJava
UseSWIG
AddFileDependencies.cmake
AndroidTestUtilities.cmake
BasicConfigVersion-AnyNewerVersion.cmake.in
BasicConfigVersion-ExactVersion.cmake.in
BasicConfigVersion-SameMajorVersion.cmake.in
BasicConfigVersion-SameMinorVersion.cmake.in
BundleUtilities.cmake
CMake.cmake
CMakeASM-ATTInformation.cmake
CMakeASMCompiler.cmake.in
CMakeASMInformation.cmake
CMakeASM_MASMInformation.cmake
CMakeASM_NASMInformation.cmake
CMakeAddFortranSubdirectory.cmake
CMakeAddNewLanguage.txt
CMakeBackwardCompatibilityC.cmake
CMakeBackwardCompatibilityCXX.cmake
CMakeBorlandFindMake.cmake
CMakeBuildSettings.cmake.in
CMakeCCompiler.cmake.in
CMakeCCompilerABI.c
CMakeCCompilerId.c.in
CMakeCInformation.cmake
CMakeCSharpCompiler.cmake.in
CMakeCSharpCompilerId.cs.in
CMakeCSharpInformation.cmake
CMakeCUDACompiler.cmake.in
CMakeCUDACompilerABI.cu
CMakeCUDACompilerId.cu.in
CMakeCUDAInformation.cmake
CMakeCXXCompiler.cmake.in
CMakeCXXCompilerABI.cpp
CMakeCXXCompilerId.cpp.in
CMakeCXXInformation.cmake
CMakeCheckCompilerFlagCommonPatterns.cmake
CMakeCommonLanguageInclude.cmake
CMakeCompilerABI.h
CMakeCompilerIdDetection.cmake
CMakeConfigurableFile.in
CMakeDependentOption.cmake
CMakeDetermineASM-ATTCompiler.cmake
CMakeDetermineASMCompiler.cmake
CMakeDetermineASM_MASMCompiler.cmake
CMakeDetermineASM_NASMCompiler.cmake
CMakeDetermineCCompiler.cmake
CMakeDetermineCSharpCompiler.cmake
CMakeDetermineCUDACompiler.cmake
CMakeDetermineCXXCompiler.cmake
CMakeDetermineCompileFeatures.cmake
CMakeDetermineCompiler.cmake
CMakeDetermineCompilerABI.cmake
CMakeDetermineCompilerId.cmake
CMakeDetermineFortranCompiler.cmake
CMakeDetermineISPCCompiler.cmake
CMakeDetermineJavaCompiler.cmake
CMakeDetermineOBJCCompiler.cmake
CMakeDetermineOBJCXXCompiler.cmake
CMakeDetermineRCCompiler.cmake
CMakeDetermineSwiftCompiler.cmake
CMakeDetermineSystem.cmake
CMakeDetermineVSServicePack.cmake
CMakeExpandImportedTargets.cmake
CMakeExportBuildSettings.cmake
CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake
CMakeFindBinUtils.cmake
CMakeFindCodeBlocks.cmake
CMakeFindDependencyMacro.cmake
CMakeFindEclipseCDT4.cmake
CMakeFindFrameworks.cmake
CMakeFindJavaCommon.cmake
CMakeFindKate.cmake
CMakeFindPackageMode.cmake
CMakeFindSublimeText2.cmake
CMakeFindWMake.cmake
CMakeFindXCode.cmake
CMakeForceCompiler.cmake
CMakeFortranCompiler.cmake.in
CMakeFortranCompilerABI.F
CMakeFortranCompilerId.F.in
CMakeFortranInformation.cmake
CMakeGenericSystem.cmake
CMakeGraphVizOptions.cmake
CMakeIOSInstallCombined.cmake
CMakeISPCCompiler.cmake.in
CMakeISPCCompilerABI.ispc