MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0015191 | CMake | CMake | public | 2014-10-03 01:06 | 2015-04-06 09:07 | |||||
Reporter | Yoshisato Yanagisawa | |||||||||
Assigned To | ||||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||
Status | closed | Resolution | duplicate | |||||||
Platform | Windows | OS | Windows | OS Version | ||||||
Product Version | ||||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0015191: find_program should search commands in PATHEXT env. | |||||||||
Description | find_program (http://www.cmake.org/cmake/help/v3.0/command/find_program.html [^]) expected to find an executable that has an extension listed in PATHEXT on Windows. However, it only tries .com and .exe. http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Source/kwsys/SystemTools.cxx;h=b1221e3a8f7fee97bca54a002590198e5fb0183f;hb=HEAD#l2785 [^] | |||||||||
Steps To Reproduce | 1. put foo.bat in the PATH. 2. put CMakeLists.txt like: cmake_minimum_required (VERSION 2.8.11) project (HELLO) find_program(Foo foo PATHS) if (NOT Foo) message (FATAL_ERROR "Foo not found") endif() message("Foo ${Foo}") 3. cmake | |||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2014-10-03 01:06 | Yoshisato Yanagisawa | New Issue | ||||||||
2014-10-03 08:15 | Brad King | Relationship added | duplicate of 0009879 | |||||||
2014-10-03 08:15 | Brad King | Note Added: 0036891 | ||||||||
2014-10-03 08:15 | Brad King | Status | new => resolved | |||||||
2014-10-03 08:15 | Brad King | Resolution | open => duplicate | |||||||
2015-04-06 09:07 | Robert Maynard | Note Added: 0038412 | ||||||||
2015-04-06 09:07 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|