From 4748f5e6ad4a0f33807ec28a94cbeee0c5d596b3 Mon Sep 17 00:00:00 2001 From: Edgar Date: Sun, 22 Dec 2024 14:03:19 +0100 Subject: [PATCH] :bug: Fixed building with Angelscript --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ae424780..b8f371a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,8 @@ find_package(Threads REQUIRED) find_package(Angelscript) find_package(jsoncpp REQUIRED) find_package(SocketW REQUIRED) -cmake_dependent_option(RORSERVER_WITH_ANGELSCRIPT "Adds scripting support" ON "AngelScript_FOUND" OFF) + +cmake_dependent_option(RORSERVER_WITH_ANGELSCRIPT "Adds scripting support" ON "TARGET Angelscript::angelscript" OFF) # setup paths SET(RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/")