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 | 5794dbf40364ae442a22b6ac6c4732edd0e61f84 (patch) | |
| tree | 6f5ac815e388f9e583ad7d052c9f1f75770fc02c | |
| parent | a826c2364d259c46bcbb4939f5abf92833c071ce (diff) | |
| download | rts-5794dbf40364ae442a22b6ac6c4732edd0e61f84.tar.gz | |
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.
| -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}) |
