Set angelscript link directory on pkmnlib target, instead of general.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2022-03-20 13:37:47 +01:00
parent e346f5ffb4
commit 43488283cb
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 2 deletions

View File

@ -69,7 +69,6 @@ if (SCRIPT_PROVIDER STREQUAL "angelscript")
include_directories(${CMAKE_CURRENT_BINARY_DIR}/include) include_directories(${CMAKE_CURRENT_BINARY_DIR}/include)
include_directories(${Angelscript_SOURCE_DIR}/angelscript/include) include_directories(${Angelscript_SOURCE_DIR}/angelscript/include)
include_directories(${Angelscript_SOURCE_DIR}/add_on) include_directories(${Angelscript_SOURCE_DIR}/add_on)
link_directories(${Angelscript_BINARY_DIR})
endif() endif()
if (WINDOWS) if (WINDOWS)
@ -160,7 +159,7 @@ file(GLOB_RECURSE CORE_SRC_FILES ${FILE_SOURCE})
add_library(pkmnLib ${LIBTYPE} ${CORE_SRC_FILES}) add_library(pkmnLib ${LIBTYPE} ${CORE_SRC_FILES})
# Enable all warnings, and make them error when occurring. # Enable all warnings, and make them error when occurring.
target_compile_options(pkmnLib PRIVATE -Wall -Wextra -Werror) target_compile_options(pkmnLib PRIVATE -Wall -Wextra -Werror)
target_link_directories(pkmnLib PUBLIC ${Angelscript_BINARY_DIR})
# If interprocedural optimization is available, apply it # If interprocedural optimization is available, apply it
check_ipo_supported(RESULT IPO_SUPPORTED) check_ipo_supported(RESULT IPO_SUPPORTED)