Revision: 77601
          http://sourceforge.net/p/brlcad/code/77601
Author:   starseeker
Date:     2020-10-23 13:52:33 +0000 (Fri, 23 Oct 2020)
Log Message:
-----------
Put the EXE_EXT definition in the Util file, before it is used.

Modified Paths:
--------------
    brlcad/branches/extbuild/CMakeLists.txt
    brlcad/branches/extbuild/misc/CMake/BRLCAD_Util.cmake

Modified: brlcad/branches/extbuild/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/CMakeLists.txt     2020-10-23 13:47:21 UTC (rev 
77600)
+++ brlcad/branches/extbuild/CMakeLists.txt     2020-10-23 13:52:33 UTC (rev 
77601)
@@ -101,13 +101,6 @@
   set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
 endif(USE_OBJECT_LIBS)
 
-# Find the executable extension, if there is one.  Really should be able to use
-# CMAKE_EXECUTABLE_SUFFIX for this, but we've hit a few cases over the years
-# where that hasn't been defined.  CMAKE_COMMAND does seem to be reliably
-# defined, however, so we establish the convention of using it to supply us
-# with the platform exe extension, if there is one.
-get_filename_component(EXE_EXT "${CMAKE_COMMAND}" EXT)
-
 #---------------------------------------------------------------------
 # Record the CMake command line arguments (more or less) in
 # CMakeFiles/CMakeOutput.log

Modified: brlcad/branches/extbuild/misc/CMake/BRLCAD_Util.cmake
===================================================================
--- brlcad/branches/extbuild/misc/CMake/BRLCAD_Util.cmake       2020-10-23 
13:47:21 UTC (rev 77600)
+++ brlcad/branches/extbuild/misc/CMake/BRLCAD_Util.cmake       2020-10-23 
13:52:33 UTC (rev 77601)
@@ -38,6 +38,14 @@
 include(CMakeParseArguments)
 
 #-----------------------------------------------------------------------------
+# Find the executable extension, if there is one.  Really should be able to use
+# CMAKE_EXECUTABLE_SUFFIX for this, but we've hit a few cases over the years
+# where that hasn't been defined.  CMAKE_COMMAND does seem to be reliably
+# defined, however, so we establish the convention of using it to supply us
+# with the platform exe extension, if there is one.
+get_filename_component(EXE_EXT "${CMAKE_COMMAND}" EXT)
+
+#-----------------------------------------------------------------------------
 # We want to support a "distclean" build target that will clear all
 # CMake-generated files from a source directory in the case of an
 # in-source-dir configuration.  Not recommended, but we'll try to

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