Only add angelscript debugger to non windows platforms
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2022-03-12 13:26:49 +01:00
parent 0c82ff9e82
commit 2e9248ff18
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 7 additions and 1 deletions

View File

@ -9,6 +9,12 @@ set(BUILD_SHARED_LIBS OFF)
option(WINDOWS "Whether the build target is Windows or not." OFF)
set(SHARED OFF)
if (WINDOWS)
SET(ANGELSCRIPT_DEBUGGER OFF)
else()
SET(ANGELSCRIPT_DEBUGGER ON)
endif()
execute_process(COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/include)
CPMAddPackage(
NAME PkmnLib
@ -17,7 +23,7 @@ CPMAddPackage(
OPTIONS
"SHARED=${SHARED}"
"WINDOWS=${WINDOWS}"
"ANGELSCRIPT_DEBUGGER ON"
"ANGELSCRIPT_DEBUGGER=${ANGELSCRIPT_DEBUGGER}"
)
execute_process(COMMAND ln -sf ${PkmnLib_SOURCE_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/include/PkmnLib)