Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
29d4e9cbdd | ||
|
|
636ed3071e | ||
|
|
b54849fdc4 | ||
|
|
f603635ee2 | ||
|
|
e240c504da | ||
|
|
4e9d783e87 | ||
|
|
bdaf9ce21b | ||
|
|
8249d9e4cd |
Executable → Regular
+13
@@ -54,6 +54,8 @@ function(ensearch efile efound)
|
||||
"${CBD}/../bin"
|
||||
../bench
|
||||
"${CBD}/../bench")
|
||||
|
||||
# First, check exactly what was specified
|
||||
foreach(sd ${sdirs})
|
||||
if(EXISTS ${sd}/${efile})
|
||||
set(${efound} "${sd}/${efile}" PARENT_SCOPE)
|
||||
@@ -61,6 +63,17 @@ function(ensearch efile efound)
|
||||
endif(EXISTS ${sd}/${efile})
|
||||
endforeach(sd ${sdirs})
|
||||
|
||||
# If nothing was found and the platform defines an executable suffix, try
|
||||
# with the suffix present as well.
|
||||
if (CMAKE_EXECUTABLE_SUFFIX)
|
||||
foreach(sd ${sdirs})
|
||||
if(EXISTS ${sd}/${efile})
|
||||
set(${efound} "${sd}/${efile}${CMAKE_EXECUTABLE_SUFFIX}" PARENT_SCOPE)
|
||||
return()
|
||||
endif(EXISTS ${sd}/${efile})
|
||||
endforeach(sd ${sdirs})
|
||||
endif (CMAKE_EXECUTABLE_SUFFIX)
|
||||
|
||||
if(ENS_REQUIRED)
|
||||
message(FATAL_ERROR "Unable to find ${efile}, aborting")
|
||||
else(ENS_REQUIRED)
|
||||
|
||||
Reference in New Issue
Block a user