Skip to content

Commit f51bc68

Browse files
[CMake] Link the check binary with complete lib
We must link the `check` binary with our complete library, s.t. at least one `DataLayoutFactory` exists. That is, because processing `CREATE TABLE` statements requires creating and assigning a `DataLayout` to the `Table` instance.
1 parent c496a17 commit f51bc68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ target_link_libraries(parse-bin PRIVATE ${PROJECT_NAME})
144144
set_target_properties(parse-bin PROPERTIES OUTPUT_NAME parse)
145145

146146
add_executable(check-bin check.cpp)
147-
target_link_libraries(check-bin PRIVATE ${PROJECT_NAME})
147+
target_link_libraries(check-bin PRIVATE ${PROJECT_NAME}_complete)
148148
set_target_properties(check-bin PROPERTIES OUTPUT_NAME check)
149149

150150
add_executable(shell shell.cpp)

0 commit comments

Comments
 (0)