https://github.com/boldtempleGaming/Engine/blob/8ed73a49777b59f0af1031d9787c7bdaa98ba3cb/CMakeLists.txt#L16 The command **option(USE_LUA ON)** would have no effect to the default value (**ON**), use **option(USE_LUA "some descriptions" ON)** instead Plz take a look at cmake manual: https://cmake.org/cmake/help/v3.0/command/option.html