Ensure proper compilation on Windows
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
2a39467899
commit
b459ec8ee2
|
@ -65,12 +65,9 @@ if (SCRIPT_PROVIDER STREQUAL "angelscript")
|
|||
file(GLOB_RECURSE ANGELSCRIPT_SRC_FILES "src/AngelScript/*.cpp" "src/AngelScript/*.hpp")
|
||||
add_library(pkmnLib-angelscript SHARED ${ANGELSCRIPT_SRC_FILES})
|
||||
SET(SCRIPT_PROVIDER_LIB_NAME "pkmnLib-angelscript")
|
||||
|
||||
target_link_libraries(pkmnLib-angelscript PUBLIC ${_LINKS} angelscript)
|
||||
SET(_LINKS ${_LINKS} angelscript)
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
if (WINDOWS)
|
||||
message(STATUS "Using Windows build.")
|
||||
set(CMAKE_CXX_FLAGS "-L ${CMAKE_BINARY_DIR}/bin")
|
||||
|
@ -83,6 +80,10 @@ endif (WINDOWS)
|
|||
|
||||
target_link_libraries(pkmnLib PUBLIC ${_LINKS})
|
||||
|
||||
if (SCRIPT_PROVIDER STREQUAL "angelscript")
|
||||
target_link_libraries(pkmnLib-angelscript PUBLIC ${_LINKS})
|
||||
endif()
|
||||
|
||||
if (NOT DEFINED CONAN_EXPORTED)
|
||||
# Create Test executable
|
||||
file(GLOB_RECURSE TEST_FILES "tests/*.cpp" "tests/*.hpp")
|
||||
|
|
Loading…
Reference in New Issue