Potential fix for Windows build.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
c716992f12
commit
ca707e5384
|
@ -60,14 +60,6 @@ add_library(pkmnLib SHARED ${CORE_SRC_FILES})
|
|||
SET(_LINKS CreatureLibCore CreatureLibLibrary CreatureLibBattling)
|
||||
SET(_TESTLINKS pkmnLib CreatureLibCore CreatureLibLibrary CreatureLibBattling)
|
||||
|
||||
if (SCRIPT_PROVIDER STREQUAL "angelscript")
|
||||
message(STATUS "Creating angelscript implementation.")
|
||||
file(GLOB_RECURSE ANGELSCRIPT_SRC_FILES "src/AngelScript/*.cpp" "src/AngelScript/*.hpp" "extern/angelscript_addons/*.cpp" "extern/angelscript_addons/*.h")
|
||||
add_library(pkmnLib-angelscript SHARED ${ANGELSCRIPT_SRC_FILES} )
|
||||
SET(SCRIPT_PROVIDER_LIB_NAME "pkmnLib-angelscript")
|
||||
SET(_LINKS ${_LINKS} angelscript)
|
||||
endif()
|
||||
|
||||
if (WINDOWS)
|
||||
message(STATUS "Using Windows build.")
|
||||
set(CMAKE_CXX_FLAGS "-L ${CMAKE_BINARY_DIR}/bin")
|
||||
|
@ -77,6 +69,14 @@ if (WINDOWS)
|
|||
SET(_TESTLINKS ${_TESTLINKS} -static-libgcc -static-libstdc++)
|
||||
endif (WINDOWS)
|
||||
|
||||
if (SCRIPT_PROVIDER STREQUAL "angelscript")
|
||||
message(STATUS "Creating angelscript implementation.")
|
||||
file(GLOB_RECURSE ANGELSCRIPT_SRC_FILES "src/AngelScript/*.cpp" "src/AngelScript/*.hpp" "extern/angelscript_addons/*.cpp" "extern/angelscript_addons/*.h")
|
||||
add_library(pkmnLib-angelscript SHARED ${ANGELSCRIPT_SRC_FILES} )
|
||||
SET(SCRIPT_PROVIDER_LIB_NAME "pkmnLib-angelscript")
|
||||
SET(_LINKS ${_LINKS} angelscript)
|
||||
endif()
|
||||
|
||||
|
||||
target_link_libraries(pkmnLib PUBLIC ${_LINKS})
|
||||
|
||||
|
|
Loading…
Reference in New Issue