Skip to content

Commit 23108b1

Browse files
committedSep 30, 2022
Some IWYU changes
1 parent 9e1f80b commit 23108b1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+309
-184
lines changed
 

‎src/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,14 @@ if(UNIX) # APPLE, LINUX, FREE_BSD
168168
# Daemon & client
169169
file(GLOB DAEMON_SOURCES "daemon/*.cpp")
170170
add_executable(daemon ${DAEMON_SOURCES})
171+
target_include_directories(daemon PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
171172
target_link_libraries(daemon PRIVATE PCM_STATIC Threads::Threads)
172173
set_target_properties(daemon PROPERTIES OUTPUT_NAME "pcm-daemon")
173174
install(TARGETS daemon DESTINATION ${CMAKE_INSTALL_SBINDIR})
174175

175176
file(GLOB CLIENT_SOURCES "client/*.cpp")
176177
add_executable(client ${CLIENT_SOURCES})
178+
target_include_directories(client PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
177179
target_link_libraries(client PRIVATE Threads::Threads)
178180
set_target_properties(client PROPERTIES OUTPUT_NAME "pcm-client")
179181
install(TARGETS client DESTINATION ${CMAKE_INSTALL_BINDIR})

‎src/bw.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
//
66

77
#include <iostream>
8+
#include <exception>
9+
#include "mmio.h"
810
#include "bw.h"
911
#include "pci.h"
1012
#include "utils.h"
@@ -179,4 +181,4 @@ uint64 ServerBW::getPMMWrites()
179181
return result;
180182
}
181183

182-
} // namespace pcm
184+
} // namespace pcm

0 commit comments

Comments
 (0)
Failed to load comments.