Skip to content

Commit

Permalink
Update .la files on each build
Browse files Browse the repository at this point in the history
This makes sure other build systems trigger properly, e.g. when
building Xvnc.
  • Loading branch information
CendioOssman committed Dec 15, 2016
1 parent 8b5a7d9 commit 4495b72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/Modules/CMakeMacroLibtoolFile.cmake
Expand Up @@ -132,6 +132,10 @@ macro(libtool_create_control_file _target)
file(APPEND ${_laname} "dlpreopen=''\n\n") file(APPEND ${_laname} "dlpreopen=''\n\n")
file(APPEND ${_laname} "libdir='/usr/lib'\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 # Add custom command to symlink the static library so that autotools finds
# the library in .libs. These are executed after the specified target build. # the library in .libs. These are executed after the specified target build.
Expand Down

0 comments on commit 4495b72

Please sign in to comment.