Update angelscript.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
fff926b617
commit
9d4da515bf
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
Loading…
Reference in New Issue