Skip to content

Commit d8d1606

Browse files
committed
position independent code
Signed-off-by: Tyler Weaver <[email protected]>
1 parent 7141160 commit d8d1606

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ add_library(${PROJECT_NAME}
1313
target_include_directories(${PROJECT_NAME} PUBLIC
1414
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
1515
$<INSTALL_INTERFACE:include>)
16+
set_target_properties(${PROJECT_NAME} PROPERTIES
17+
POSITION_INDEPENDENT_CODE ON)
1618

1719
if(APPLE) # macOS
1820
find_library(IOKIT_LIBRARY IOKit)

include/serial/serial.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ class Serial {
343343
*
344344
* \param size A maximum length of combined lines, defaults to 65536 (2^16)
345345
*
346-
* \param eol A string to match against for the EOL.
346+
* \param eol A string to match sagainst for the EOL.
347347
*
348348
* \return A vector<string> containing the lines.
349349
*

0 commit comments

Comments
 (0)