View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0009879 | CMake | CMake | public | 2009-11-10 12:01 | 2016-06-10 14:31 | ||||
Reporter | doub | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake-2-6 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0009879: find_program command doesn't take PATHEXT into account | ||||||||
Description | The find_program command cannot find programs that don't use the .exe extension, for example .cmd scripts. On Windows, the PATH environment variable is only part of what is used by the command line (and compatible programs) to determine what files are executable. The other part is the PATHEXT environment variable, which lists extensions of executable files. The find_program command seems to assume that .exe is the only extension to check. It should be modified to extract the extension list from PATHEXT, and test all extensions listed there, in the same order as is the Windows command line evaluating them. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |||||||||||
|
Relationships |
Notes | |
(0023974) David Cole (manager) 2010-12-14 16:13 |
We should pay attention to the PATHEXT variable on Windows. Good observation. There is a workaround that works, though: name the *.cmd file explicitly as an alternate NAME for the find_program command. Just as a workaround, it works fine. |
(0036901) Yoshisato Yanagisawa (reporter) 2014-10-05 21:06 |
find_program is often used in Modules for finding a certain command. I think it straight forward solution to make CMake support PATHEXT instead of making a copy of Modules. If using PATHEXT environment is difficult, I suggest to support at lest .com;.exe;.bat;.cmd, which is the default value of PATHEXT: http://technet.microsoft.com/en-us/library/cc723564.aspx#XSLTsection127121120120 [^] |
(0041614) Kitware Robot (administrator) 2016-06-10 14:27 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2009-11-10 12:01 | doub | New Issue | |
2010-12-14 16:11 | David Cole | Assigned To | => David Cole |
2010-12-14 16:11 | David Cole | Status | new => assigned |
2010-12-14 16:13 | David Cole | Note Added: 0023974 | |
2011-01-11 17:41 | Brad King | Relationship added | related to 0011680 |
2011-10-25 22:25 | David Cole | Status | assigned => backlog |
2011-10-25 22:28 | David Cole | Assigned To | David Cole => |
2014-10-03 08:15 | Brad King | Relationship added | has duplicate 0015191 |
2014-10-05 21:06 | Yoshisato Yanagisawa | Note Added: 0036901 | |
2016-06-10 14:27 | Kitware Robot | Note Added: 0041614 | |
2016-06-10 14:27 | Kitware Robot | Status | backlog => resolved |
2016-06-10 14:27 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:27 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |