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()