From 618353c1fa6877857b31adea3daf628e22a946c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=97=B1=20PixelyIon?= Date: Wed, 25 Mar 2020 02:23:00 +0530 Subject: [PATCH] Move to linking libraries statically We used to link libraries dynamically before, this has obvious disadvantages and extra run-time overhead. Linking them statically instead has a lot of benefits as memory allocations and such don't need to be done independently, interaction with external libraries should be faster in general due to functions not being needed to be called virtually. --- app/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index d6ce0e64..c9ef76eb 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -3,6 +3,7 @@ project(Skyline LANGUAGES CXX ASM VERSION 0.3) set(BUILD_TESTS OFF) set(BUILD_TESTING OFF) +set(BUILD_SHARED_LIBS OFF) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED TRUE) set(source_DIR ${CMAKE_SOURCE_DIR}/src/main/cpp)