From e49d36a3b1d22b86f24254df06acbd653573c9df Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Wed, 21 Aug 2024 17:04:03 +0300 Subject: [PATCH] correct ordering of TOWNENGINE_HOT_RELOAD option for -fPIC --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b1ee8d..4521263 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,7 @@ endif () set(TOWNENGINE_TARGET townengine CACHE INTERNAL "") set(TOWNENGINE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "") +option(TOWNENGINE_HOT_RELOAD "Enable hot reloading support" TRUE) add_compile_options($<$:-fPIC>) set(PHYSFS_BUILD_SHARED FALSE) @@ -35,9 +36,6 @@ add_subdirectory(third-party/physfs) add_subdirectory(third-party/libxm) -option(TOWNENGINE_HOT_RELOAD "Enable hot reloading support" TRUE) - - if(UNIX) set(SYSTEM_SOURCE_FILES townengine/system/linux/elf.c) else()