]> source.dussan.org Git - tigervnc.git/commitdiff
Update .la files on each build
authorPierre Ossman <ossman@cendio.se>
Sun, 11 Dec 2016 13:04:37 +0000 (14:04 +0100)
committerPierre Ossman <ossman@cendio.se>
Thu, 15 Dec 2016 14:33:42 +0000 (15:33 +0100)
This makes sure other build systems trigger properly, e.g. when
building Xvnc.

cmake/Modules/CMakeMacroLibtoolFile.cmake

index a54d99497eb0ee9bf259e1cf4dc17ab25e86cb99..1d8b8fc09f75a9f195c7d31088774b2924c4b739 100644 (file)
@@ -132,6 +132,10 @@ macro(libtool_create_control_file _target)
   file(APPEND ${_laname} "dlpreopen=''\n\n")
   file(APPEND ${_laname} "libdir='/usr/lib'\n\n")
 
+  # Make sure the timestamp is updated to trigger other make invocations
+  add_custom_command(TARGET ${_target} POST_BUILD COMMAND
+    "${CMAKE_COMMAND}" -E touch "${_laname}")
+
 
   # Add custom command to symlink the static library so that autotools finds
   # the library in .libs.  These are executed after the specified target build.