aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-11 23:55:07 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-12 00:00:56 +0200
commit5794dbf40364ae442a22b6ac6c4732edd0e61f84 (patch)
tree6f5ac815e388f9e583ad7d052c9f1f75770fc02c
parenta826c2364d259c46bcbb4939f5abf92833c071ce (diff)
downloadrts-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.txt3
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})