View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015191CMakeCMakepublic2014-10-03 01:062015-04-06 09:07
ReporterYoshisato Yanagisawa 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionduplicate 
PlatformWindowsOSWindowsOS Version
Product Version 
Target VersionFixed in Version 
Summary0015191: find_program should search commands in PATHEXT env.
Descriptionfind_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 Reproduce1. 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
TagsNo tags attached.
Attached Files

 Relationships
duplicate of 0009879closedKitware Robot find_program command doesn't take PATHEXT into account 

  Notes
(0036891)
Brad King (manager)
2014-10-03 08:15

Resolving as duplicate of 0009879.
(0038412)
Robert Maynard (manager)
2015-04-06 09:07

Closing resolved issues that have not been updated in more than 4 months.

 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


Copyright © 2000 - 2018 MantisBT Team