Update angelscript.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2020-12-07 18:01:10 +01:00
parent fff926b617
commit 9d4da515bf
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
3 changed files with 10 additions and 3 deletions

View File

@ -119,6 +119,9 @@ if (WINDOWS)
# -m64: Build a 64 bit library
add_compile_options(-m64)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-allow-multiple-definition")
if (SHARED)
set_target_properties(pkmnLib PROPERTIES SUFFIX ".dll")
endif(SHARED)
endif (WINDOWS)
if (NOT WINDOWS)
@ -127,10 +130,13 @@ endif ()
if (STATICC)
message(STATUS "Linking C library statically")
SET(_LINKS ${_LINKS} -static-libgcc -static-libstdc++)
SET(_LINKS ${_LINKS} -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread)
endif()
target_link_libraries(pkmnLib PUBLIC ${_LINKS})
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(pkmnLib PUBLIC ${_LINKS} Threads::Threads)
if (TESTS)
# Create Test executable

View File

@ -21,6 +21,7 @@ function(SetupConan)
else ()
execute_process(COMMAND conan install ${CMAKE_SOURCE_DIR} --install-folder=${CMAKE_BINARY_DIR} --build outdated
-s compiler=gcc
-s compiler.version=10.2
-s compiler.libcxx=libstdc++11
-s os=Windows
-o *:shared=True

View File

@ -53,6 +53,6 @@ class PkmnLibConan(ConanFile):
self.requires("Arbutils/latest@epsilon/master")
self.requires("CreatureLib/latest@epsilon/master")
if self.options.script_handler == "angelscript":
self.requires("AngelScript/2.34@AngelScript/Deukhoofd")
self.requires("AngelScript/2.35@AngelScript/Deukhoofd")
else:
raise ConanInvalidConfiguration("Invalid Script Handler was specified: " + self.options.script_handler)