Skip to content
Snippets Groups Projects
Commit b3822148 authored by Oz Linden's avatar Oz Linden
Browse files

merge Nat's fix for llcorehttp test

parents 3d1e368a ec8ee339
No related branches found
No related tags found
No related merge requests found
...@@ -167,29 +167,26 @@ if (DARWIN) ...@@ -167,29 +167,26 @@ if (DARWIN)
COMMENT "Creating Resources directory in app bundle." COMMENT "Creating Resources directory in app bundle."
) )
# Copy the required libraries to the package app # Copy the required libraries to the package app. We used to use a sequence
add_custom_command(TARGET INTEGRATION_TEST_llcorehttp PRE_BUILD # of '${CMAKE_COMMAND} -E copy' commands, but 'cmake -E copy' does only a
COMMAND ${CMAKE_COMMAND} -E copy ${AUTOBUILD_INSTALL_DIR}/lib/release/libapr-1.0.dylib ${LL_TEST_DESTINATION_DIR} # single file at a time: it doesn't understand wildcards. 'cmake -E copy' is
DEPENDS ${AUTOBUILD_INSTALL_DIR}/lib/release/libapr-1.0.dylib # for portability. This operation is Darwin-specific. We can count on the
) # 'cp' command.
add_custom_command(TARGET INTEGRATION_TEST_llcorehttp PRE_BUILD set(copy_dylibs
COMMAND ${CMAKE_COMMAND} -E copy ${AUTOBUILD_INSTALL_DIR}/lib/release/libaprutil-1.0.dylib ${LL_TEST_DESTINATION_DIR} libapr-1.0.dylib
DEPENDS ${AUTOBUILD_INSTALL_DIR}/lib/release/libaprutil-1.0.dylib libaprutil-1.0.dylib
) libexception_handler.dylib
add_custom_command(TARGET INTEGRATION_TEST_llcorehttp PRE_BUILD libnghttp2*.dylib
COMMAND ${CMAKE_COMMAND} -E copy ${AUTOBUILD_INSTALL_DIR}/lib/release/libexception_handler.dylib ${LL_TEST_DESTINATION_DIR} ${EXPAT_COPY}
DEPENDS ${AUTOBUILD_INSTALL_DIR}/lib/release/libexception_handler.dylib )
)
add_custom_command(TARGET INTEGRATION_TEST_llcorehttp PRE_BUILD add_custom_command(TARGET INTEGRATION_TEST_llcorehttp PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${AUTOBUILD_INSTALL_DIR}/lib/release/libnghttp2*.dylib ${LL_TEST_DESTINATION_DIR} WORKING_DIRECTORY "${AUTOBUILD_INSTALL_DIR}/lib/release"
DEPENDS ${AUTOBUILD_INSTALL_DIR}/lib/release/libnghttp2.dylib COMMAND cp -v
${copy_dylibs}
${LL_TEST_DESTINATION_DIR}
DEPENDS ${copy_dylibs}
) )
foreach(expat ${EXPAT_COPY})
add_custom_command(TARGET INTEGRATION_TEST_llcorehttp PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${AUTOBUILD_INSTALL_DIR}/lib/release/${expat} ${LL_TEST_DESTINATION_DIR}
DEPENDS ${AUTOBUILD_INSTALL_DIR}/lib/release/${expat}
)
endforeach(expat)
endif (DARWIN) endif (DARWIN)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment