[cmake-developers] [CMake 0013764]: is_file_executable() from GetPrerequisites.cmake erroneously returns 0 for DLL on windows

Mantis Bug Tracker mantis at public.kitware.com
Fri Nov 30 14:13:07 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13764 
====================================================================== 
Reported By:                Csaba Keszegh
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13764
Category:                   CMake
Reproducibility:            always
Severity:                   trivial
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-11-30 14:13 EST
Last Modified:              2012-11-30 14:13 EST
====================================================================== 
Summary:                    is_file_executable() from GetPrerequisites.cmake
erroneously returns 0 for DLL on windows
Description: 
On Windows is_file_executable() checks the extension to determine whether the
file is executable. DLL should also be considered as executable, so fixup_bundle
would work.

Steps to Reproduce: 
> cmake -P is_dll_executable.cmake
c:/windows/system32/kernel32.dll: 0
> type is_dll_executable.cmake

include(BundleUtilities)
set(f0 "c:/windows/system32/kernel32.dll")
is_file_executable(f0 is_dll_executable)
message("${f0}: ${is_dll_executable}")

expected output would be:
c:/windows/system32/kernel32.dll: 1
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-11-30 14:13 Csaba Keszegh  New Issue                                    
2012-11-30 14:13 Csaba Keszegh  File Added: GetPrerequisites.cmake.diff         
          
======================================================================




More information about the cmake-developers mailing list