]> source.dussan.org Git - tigervnc.git/commitdiff
libtool control file should be created in binary directory, not source directory...
authorDRC <dcommander@users.sourceforge.net>
Thu, 9 Jun 2011 22:06:05 +0000 (22:06 +0000)
committerDRC <dcommander@users.sourceforge.net>
Thu, 9 Jun 2011 22:06:05 +0000 (22:06 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4487 3789f03b-4d11-0410-bbf8-ca57d06f2519

cmake/Modules/CMakeMacroLibtoolFile.cmake

index 09f9494d408bb0cac115f4d19a26b26a786d449f..dac428672d902b332157d1220e74a47dfc3e3104 100644 (file)
@@ -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()