Revision: 75889
          http://sourceforge.net/p/brlcad/code/75889
Author:   starseeker
Date:     2020-05-22 11:21:14 +0000 (Fri, 22 May 2020)
Log Message:
-----------
If we have CMAKE_EXECUTABLE_SUFFIX, try using it

Modified Paths:
--------------
    brlcad/branches/mktest/misc/CMake/BRLCAD_Regress_Util.cmake

Modified: brlcad/branches/mktest/misc/CMake/BRLCAD_Regress_Util.cmake
===================================================================
--- brlcad/branches/mktest/misc/CMake/BRLCAD_Regress_Util.cmake 2020-05-22 
08:30:12 UTC (rev 75888)
+++ brlcad/branches/mktest/misc/CMake/BRLCAD_Regress_Util.cmake 2020-05-22 
11:21:14 UTC (rev 75889)
@@ -54,6 +54,8 @@
     "${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 @@
     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)

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to