Skip to content
Snippets Groups Projects
Commit 48acda65 authored by Patzke's avatar Patzke
Browse files

Windows fix

parent dc52eac3
No related branches found
No related tags found
No related merge requests found
......@@ -46,9 +46,8 @@ void SystemIO::Skip(SocketDescriptor socket_fd, size_t length, hidra2::IOErrors*
std::unique_ptr<uint8_t[]> buffer;
try {
buffer.reset(new uint8_t[kSkipBufferSize]);
} catch(std::exception& e) {
assert(false);
*err = IOErrors::kUnknownError;
} catch(...) {
*err = IOErrors::kMemoryAllocationError;
return;
}
size_t already_skipped = 0;
......
......@@ -12,6 +12,10 @@ add_library(${TARGET_NAME} STATIC ${SOURCE_FILES} $<TARGET_OBJECTS:common>)
target_include_directories(${TARGET_NAME} PUBLIC include ${CMAKE_SOURCE_DIR}/common/cpp/include)
set_target_properties(${TARGET_NAME} PROPERTIES LINKER_LANGUAGE CXX)
#Add all necessary common libraries
GET_PROPERTY(HIDRA2_COMMON_IO_LIBRARIES GLOBAL PROPERTY HIDRA2_COMMON_IO_LIBRARIES)
target_link_libraries(${TARGET_NAME} ${HIDRA2_COMMON_IO_LIBRARIES})
################################
# Testing
################################
......
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