diff options
author | DRC <dcommander@users.sourceforge.net> | 2011-06-09 22:06:05 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2011-06-09 22:06:05 +0000 |
commit | 5dc23afeae3545dfb42c0ac25be6db7650a8f73e (patch) | |
tree | 9e774cbbf30faff2f6b798ba9b35d0ed35e5d6b3 /cmake | |
parent | 697954f0f12c0c771300e20724e7f9283921a2ad (diff) | |
download | tigervnc-5dc23afeae3545dfb42c0ac25be6db7650a8f73e.tar.gz tigervnc-5dc23afeae3545dfb42c0ac25be6db7650a8f73e.zip |
libtool control file should be created in binary directory, not source directory, to support out-of-tree builds.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4487 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/CMakeMacroLibtoolFile.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmake/Modules/CMakeMacroLibtoolFile.cmake b/cmake/Modules/CMakeMacroLibtoolFile.cmake index 09f9494d..dac42867 100644 --- a/cmake/Modules/CMakeMacroLibtoolFile.cmake +++ b/cmake/Modules/CMakeMacroLibtoolFile.cmake @@ -90,11 +90,11 @@ macro(libtool_create_control_file _target) file(APPEND ${_laname} "libdir=''\n\n") - # Add custom command to symlink the static library soo that autotools finds the library in .libs + # Add custom command to symlink the static library so that autotools finds the library in .libs # these are executed after the specified target build. add_custom_command(TARGET ${_target} POST_BUILD COMMAND - cmake -E make_directory "${CMAKE_CURRENT_SOURCE_DIR}/.libs") + cmake -E make_directory "${CMAKE_CURRENT_BINARY_DIR}/.libs") add_custom_command(TARGET ${_target} POST_BUILD COMMAND - cmake -E create_symlink ${_target_location} "${CMAKE_CURRENT_SOURCE_DIR}/.libs/${_lname}${CMAKE_STATIC_LIBRARY_SUFFIX}") + cmake -E create_symlink ${_target_location} "${CMAKE_CURRENT_BINARY_DIR}/.libs/${_lname}${CMAKE_STATIC_LIBRARY_SUFFIX}") -endmacro()
\ No newline at end of file +endmacro() |