Skip to content

Commit 1f28e5e

Browse files
authored
Merge pull request #75 from mgruhler/patch-1
[doc] fix typo in README in cmake linking statically example
2 parents 706649c + 099796e commit 1f28e5e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ It is possible to produce static libraries for linking by setting the cmake conf
142142

143143
```cmake
144144
145-
SET(BUILD_SHARED_LIBS ON) add_subdirectory(libsocket)
145+
SET(BUILD_STATIC_LIBS ON) add_subdirectory(libsocket)
146146
147-
target_link_libraries(MyProject libsocket_int) # C linking target_link_libraries(MyProject
148-
libsocket++_int) # C++ linking
147+
target_link_libraries(MyProject libsocket_int) # C linking
148+
target_link_libraries(MyProject libsocket++_int) # C++ linking
149149
150150
```
151151

0 commit comments

Comments
 (0)