diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-11 23:55:07 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-12 00:00:56 +0200 |
| commit | b2af4c6bccc4263e5c7aa96efd0f94e1b7a38231 (patch) | |
| tree | 5f49fb8c81f4084cfabb529c965361c644d9b316 /CMakeLists.txt | |
| parent | 324ac3b807181ecd24b8ac96a83dee101509e6fc (diff) | |
CMakeLists.txt: limit libraries linked to by ${PROJECT_NAME}
Old behaviour was linking to all components, but main.c currently only
needs a few of them.
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ca23a38..f04b6e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,11 +69,12 @@ set(interfaces ) target_compile_options(${PROJECT_NAME} PUBLIC ${cflags}) +# Dependencies for main.c +target_link_libraries(${PROJECT_NAME} PRIVATE system game) foreach(c ${components}) add_subdirectory("src/${c}") target_compile_options(${c} PUBLIC ${cflags}) - target_link_libraries(${PROJECT_NAME} PRIVATE ${c}) endforeach() foreach(i ${interfaces}) |
