mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-25 15:49:08 -05:00
86e6349ef7
`find_program` internally uses `cmSystemTools::FileExists` which calls `access(R_OK)` instead of `access(X_OK)`. Use `cmSystemTools::IsFileExecutable` instead to fix this issue. An example of such a program is `sudo`. Fixes: #10468
17 lines
282 B
CMake
17 lines
282 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(EnvAndHints)
|
|
run_cmake(DirsPerName)
|
|
run_cmake(NamesPerDir)
|
|
run_cmake(RelAndAbsPath)
|
|
run_cmake(Required)
|
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES "^(Windows|CYGWIN)$")
|
|
run_cmake(WindowsCom)
|
|
run_cmake(WindowsExe)
|
|
endif()
|
|
|
|
if(UNIX)
|
|
run_cmake(ExeNoRead)
|
|
endif()
|