Skip to content

Commit e12061a

Browse files
authored
Make install the benchmark (#116)
1 parent 3ad9ede commit e12061a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,11 @@ endif()
220220
unset(isSystemDir)
221221

222222
# Install library
223-
install(TARGETS Monitoring
223+
install(TARGETS Monitoring 5-Benchmark
224224
EXPORT MonitoringTargets
225225
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
226226
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
227+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
227228
)
228229

229230
# Create version file

src/UriParser/UriParser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ namespace http {
7070
int port;
7171
std::string portstring = TailSlice(hostport, ":");
7272
try { port = atoi(portstring.c_str()); }
73-
catch (std::exception e) { port = -1; }
73+
catch (std::exception &e) { port = -1; }
7474
return port;
7575
}
7676

0 commit comments

Comments
 (0)