libAttachmentSupport: convert into shared lib
This ensures that the support routines in this library will be exposed at the same vaddr to each object in the vaddrspace.
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
add_library(attachmentSupport STATIC
|
||||
attachmentSupport.cpp
|
||||
)
|
||||
|
||||
set_target_properties(attachmentSupport PROPERTIES
|
||||
POSITION_INDEPENDENT_CODE ON
|
||||
add_library(attachmentSupport SHARED
|
||||
stimulusBuffer.cpp
|
||||
)
|
||||
|
||||
target_include_directories(attachmentSupport PUBLIC
|
||||
@@ -16,3 +12,13 @@ target_link_libraries(attachmentSupport PUBLIC
|
||||
Boost::system
|
||||
Boost::log
|
||||
)
|
||||
|
||||
# Verify Boost dynamic dependencies after build
|
||||
add_custom_command(TARGET attachmentSupport POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -DVERIFY_FILE="$<TARGET_FILE:attachmentSupport>"
|
||||
-P ${CMAKE_SOURCE_DIR}/cmake/VerifyBoostDynamic.cmake
|
||||
COMMENT "Verifying Boost dynamic dependencies for attachmentSupport"
|
||||
)
|
||||
|
||||
# Install rules
|
||||
install(TARGETS attachmentSupport DESTINATION lib)
|
||||
|
||||
+1
@@ -100,3 +100,4 @@ void StimulusBuffer::onTimeout(const boost::system::error_code& error)
|
||||
|
||||
} // namespace stim_buff
|
||||
} // namespace smo
|
||||
|
||||
Reference in New Issue
Block a user