Explorar o código

Make sure that CMake reconfigures when boost/version.hpp changes

[SVN r53009]
Douglas Gregor %!s(int64=17) %!d(string=hai) anos
pai
achega
742f0fbbea
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      CMakeLists.txt

+ 4 - 0
CMakeLists.txt

@@ -45,6 +45,10 @@ else()
   message(FATAL_ERROR 
   message(FATAL_ERROR 
     "Unable to parse Boost version from ${CMAKE_CURRENT_SOURCE_DIR}/boost/version.hpp")
     "Unable to parse Boost version from ${CMAKE_CURRENT_SOURCE_DIR}/boost/version.hpp")
 endif()
 endif()
+
+# Make sure that we reconfigure when boost/version.hpp changes.
+configure_file(boost/version.hpp
+   ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/version.stamp)
 ##########################################################################
 ##########################################################################
 
 
 # Put the libaries and binaries that get built into directories at the
 # Put the libaries and binaries that get built into directories at the

粤ICP备19079148号