diff options
| author | 0undefined <oscar@nelin.dk> | 2025-02-26 14:05:59 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2025-02-26 14:58:25 +0000 |
| commit | 426e05864f74cde2f3a4b948d76ffb82e6c2d951 (patch) | |
| tree | 41a94175f799d61f75022c0a9fa87d0aa2723418 | |
| parent | 49f326f0740d563d6394d28d0e062570909a51dd (diff) | |
Try some lto and pic
| -rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index eb68bda..5812e5c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,8 @@ cmake_dependent_option(DAW_BUILD_TOOLS if("${CMAKE_BUILD_TYPE}" STREQUAL "Release") message("Enabling LTO") - set(${CMAKE_INTERPROCEDURAL_OPTIMIZATION} TRUE) + set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) + set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) endif() if(DAW_BUILD_DEBUG AND MAINPROJECT) |
