Skip to content

Commit 1e79b3d

Browse files
authored
Merge pull request #84 from codecrafters-io/andy/tweak
Link readline for C and C++
2 parents 1f92ba3 + cd7814b commit 1e79b3d

File tree

8 files changed

+16
-0
lines changed

8 files changed

+16
-0
lines changed

compiled_starters/c/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ file(GLOB_RECURSE SOURCE_FILES src/*.c src/*.h)
77
set(CMAKE_C_STANDARD 23) # Enable the C23 standard
88

99
add_executable(shell ${SOURCE_FILES})
10+
11+
target_link_libraries(shell PRIVATE readline)

compiled_starters/cpp/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ file(GLOB_RECURSE SOURCE_FILES src/*.cpp src/*.hpp)
77
set(CMAKE_CXX_STANDARD 23) # Enable the C++23 standard
88

99
add_executable(shell ${SOURCE_FILES})
10+
11+
target_link_libraries(shell PRIVATE readline)

solutions/c/01-oo8/code/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ file(GLOB_RECURSE SOURCE_FILES src/*.c src/*.h)
77
set(CMAKE_C_STANDARD 23) # Enable the C23 standard
88

99
add_executable(shell ${SOURCE_FILES})
10+
11+
target_link_libraries(shell PRIVATE readline)

solutions/c/02-cz2/code/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ file(GLOB_RECURSE SOURCE_FILES src/*.c src/*.h)
77
set(CMAKE_C_STANDARD 23) # Enable the C23 standard
88

99
add_executable(shell ${SOURCE_FILES})
10+
11+
target_link_libraries(shell PRIVATE readline)

solutions/cpp/01-oo8/code/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ file(GLOB_RECURSE SOURCE_FILES src/*.cpp src/*.hpp)
77
set(CMAKE_CXX_STANDARD 23) # Enable the C++23 standard
88

99
add_executable(shell ${SOURCE_FILES})
10+
11+
target_link_libraries(shell PRIVATE readline)

solutions/cpp/02-cz2/code/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ file(GLOB_RECURSE SOURCE_FILES src/*.cpp src/*.hpp)
77
set(CMAKE_CXX_STANDARD 23) # Enable the C++23 standard
88

99
add_executable(shell ${SOURCE_FILES})
10+
11+
target_link_libraries(shell PRIVATE readline)

starter_templates/c/code/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ file(GLOB_RECURSE SOURCE_FILES src/*.c src/*.h)
77
set(CMAKE_C_STANDARD 23) # Enable the C23 standard
88

99
add_executable(shell ${SOURCE_FILES})
10+
11+
target_link_libraries(shell PRIVATE readline)

starter_templates/cpp/code/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ file(GLOB_RECURSE SOURCE_FILES src/*.cpp src/*.hpp)
77
set(CMAKE_CXX_STANDARD 23) # Enable the C++23 standard
88

99
add_executable(shell ${SOURCE_FILES})
10+
11+
target_link_libraries(shell PRIVATE readline)

0 commit comments

Comments
 (0)