Revision: 77877
          http://sourceforge.net/p/brlcad/code/77877
Author:   starseeker
Date:     2020-12-02 19:57:01 +0000 (Wed, 02 Dec 2020)
Log Message:
-----------
Add some specific object dependencies on the generated version header.

Modified Paths:
--------------
    
brlcad/branches/extbuild/src/other/ext/stepcode/cmake/SC_Config_Headers.cmake
    brlcad/branches/extbuild/src/other/ext/stepcode/src/exp2cxx/CMakeLists.txt
    brlcad/branches/extbuild/src/other/ext/stepcode/src/exppp/CMakeLists.txt
    brlcad/branches/extbuild/src/other/ext/stepcode/src/express/CMakeLists.txt

Modified: 
brlcad/branches/extbuild/src/other/ext/stepcode/cmake/SC_Config_Headers.cmake
===================================================================
--- 
brlcad/branches/extbuild/src/other/ext/stepcode/cmake/SC_Config_Headers.cmake   
    2020-12-02 19:35:30 UTC (rev 77876)
+++ 
brlcad/branches/extbuild/src/other/ext/stepcode/cmake/SC_Config_Headers.cmake   
    2020-12-02 19:57:01 UTC (rev 77877)
@@ -111,7 +111,7 @@
   configure_file(${SC_CMAKE_DIR}/sc_version_string.cmake 
${SC_BINARY_DIR}/sc_version_string.cmake @ONLY)
   add_custom_target(version_string ALL DEPENDS ver_string)
   # creates sc_version_string.h using cmake script
-  add_custom_command(OUTPUT ver_string
+  add_custom_command(OUTPUT ver_string 
${CMAKE_CURRENT_BINARY_DIR}/${INCLUDE_INSTALL_DIR}/sc_version_string.h
     COMMAND ${CMAKE_COMMAND} -DSOURCE_DIR=${SC_SOURCE_DIR} 
-DBINARY_DIR=${SC_BINARY_DIR} -P ${SC_BINARY_DIR}/sc_version_string.cmake
     )
   # sc_version_string.h is a generated file

Modified: 
brlcad/branches/extbuild/src/other/ext/stepcode/src/exp2cxx/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/stepcode/src/exp2cxx/CMakeLists.txt  
2020-12-02 19:35:30 UTC (rev 77876)
+++ brlcad/branches/extbuild/src/other/ext/stepcode/src/exp2cxx/CMakeLists.txt  
2020-12-02 19:57:01 UTC (rev 77877)
@@ -39,6 +39,12 @@
 
 SC_ADDEXEC(exp2cxx SOURCES ${exp2cxx_SOURCES} LINK_LIBRARIES libexppp express 
base)
 
+set_source_files_properties(
+  classes_misc.c
+  PROPERTIES OBJECT_DEPENDS
+  "${SC_BINARY_DIR}/${INCLUDE_INSTALL_DIR}/sc_version_string.h"
+  )
+
 if(NOT SC_IS_SUBBUILD AND SC_GIT_VERSION)
   add_dependencies(exp2cxx version_string)
 endif(NOT SC_IS_SUBBUILD AND SC_GIT_VERSION)

Modified: 
brlcad/branches/extbuild/src/other/ext/stepcode/src/exppp/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/stepcode/src/exppp/CMakeLists.txt    
2020-12-02 19:35:30 UTC (rev 77876)
+++ brlcad/branches/extbuild/src/other/ext/stepcode/src/exppp/CMakeLists.txt    
2020-12-02 19:57:01 UTC (rev 77877)
@@ -18,6 +18,12 @@
   pretty_where.c
  )
 
+set_source_files_properties(
+  pretty_schema.c
+  PROPERTIES OBJECT_DEPENDS
+  "${SC_BINARY_DIR}/${INCLUDE_INSTALL_DIR}/sc_version_string.h"
+  )
+
 SET(EXPPP_SOURCES
   ../express/fedex.c
   exppp-main.c
@@ -43,6 +49,7 @@
   set_target_properties(libexppp-static PROPERTIES PREFIX "")
 endif()
 
+
 SC_ADDEXEC(exppp SOURCES ${EXPPP_SOURCES} LINK_LIBRARIES libexppp express base)
 
 if(SC_ENABLE_TESTING)

Modified: 
brlcad/branches/extbuild/src/other/ext/stepcode/src/express/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/stepcode/src/express/CMakeLists.txt  
2020-12-02 19:35:30 UTC (rev 77876)
+++ brlcad/branches/extbuild/src/other/ext/stepcode/src/express/CMakeLists.txt  
2020-12-02 19:57:01 UTC (rev 77877)
@@ -49,8 +49,14 @@
   ordered_attrs.cc
   info.c
   factory.c
- )
+  )
 
+set_source_files_properties(
+  info.c fedex.c
+  PROPERTIES OBJECT_DEPENDS
+  "${SC_BINARY_DIR}/${INCLUDE_INSTALL_DIR}/sc_version_string.h"
+  )
+
 set(EXPRESS_OBJS)
 foreach(_src ${EXPRESS_SOURCES})
     string(REPLACE "." "_" _suffix ${_src})

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