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()