Skip to content

Commit

Permalink
git: add submodule for spawn library
Browse files Browse the repository at this point in the history
Signed-off-by: Casey Bodley <[email protected]>
  • Loading branch information
cbodley committed Jan 8, 2020
1 parent 1ca0a11 commit c84fc40
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,6 @@
[submodule "src/c-ares"]
path = src/c-ares
url = https://github.com/ceph/c-ares.git
[submodule "src/spawn"]
path = src/spawn
url = https://github.com/ceph/spawn.git
6 changes: 6 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,12 @@ if(WITH_RBD)
add_subdirectory(rbd_replay)
endif(WITH_RBD)

if(WITH_BOOST_CONTEXT)
set(SPAWN_BUILD_TESTS OFF CACHE INTERNAL "disable building of spawn unit tests")
set(SPAWN_INSTALL OFF CACHE INTERNAL "disable installation of spawn headers")
add_subdirectory(spawn)
endif()

# RadosGW
if(WITH_KVS)
add_subdirectory(key_value_store)
Expand Down
2 changes: 1 addition & 1 deletion src/rgw/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ if(WITH_CURL_OPENSSL)
endif()

if(WITH_BOOST_CONTEXT)
target_link_libraries(rgw_a PRIVATE Boost::coroutine Boost::context)
target_link_libraries(rgw_a PRIVATE spawn)
endif()

set(rgw_libs rgw_a)
Expand Down
1 change: 1 addition & 0 deletions src/spawn
Submodule spawn added at 5f4742

0 comments on commit c84fc40

Please sign in to comment.