Only add angelscript debugger to non windows platforms
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
0c82ff9e82
commit
2e9248ff18
|
@ -9,6 +9,12 @@ set(BUILD_SHARED_LIBS OFF)
|
||||||
option(WINDOWS "Whether the build target is Windows or not." OFF)
|
option(WINDOWS "Whether the build target is Windows or not." OFF)
|
||||||
set(SHARED 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)
|
execute_process(COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/include)
|
||||||
CPMAddPackage(
|
CPMAddPackage(
|
||||||
NAME PkmnLib
|
NAME PkmnLib
|
||||||
|
@ -17,7 +23,7 @@ CPMAddPackage(
|
||||||
OPTIONS
|
OPTIONS
|
||||||
"SHARED=${SHARED}"
|
"SHARED=${SHARED}"
|
||||||
"WINDOWS=${WINDOWS}"
|
"WINDOWS=${WINDOWS}"
|
||||||
"ANGELSCRIPT_DEBUGGER ON"
|
"ANGELSCRIPT_DEBUGGER=${ANGELSCRIPT_DEBUGGER}"
|
||||||
)
|
)
|
||||||
execute_process(COMMAND ln -sf ${PkmnLib_SOURCE_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/include/PkmnLib)
|
execute_process(COMMAND ln -sf ${PkmnLib_SOURCE_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/include/PkmnLib)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue