mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Build: Inherit the features and warning flags privately
(cherry picked from commit 1285347518)
This commit is contained in:
@@ -61,8 +61,8 @@ target_include_directories(common
|
||||
target_link_libraries(common
|
||||
PRIVATE
|
||||
process
|
||||
PUBLIC
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
boost
|
||||
fmt
|
||||
g3dlib
|
||||
|
||||
@@ -40,6 +40,8 @@ if( NOT WIN32 )
|
||||
endif()
|
||||
|
||||
target_link_libraries(authserver
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
shared)
|
||||
|
||||
|
||||
@@ -48,6 +48,8 @@ target_include_directories(database
|
||||
add_definitions(-DTRINITY_API_EXPORT_DATABASE)
|
||||
|
||||
target_link_libraries(database
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
common
|
||||
mysql)
|
||||
|
||||
@@ -49,10 +49,11 @@ target_include_directories(game
|
||||
${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
target_link_libraries(game
|
||||
PUBLIC
|
||||
game-interface
|
||||
PRIVATE
|
||||
efsw)
|
||||
trinity-core-interface
|
||||
efsw
|
||||
PUBLIC
|
||||
game-interface)
|
||||
|
||||
set_target_properties(game
|
||||
PROPERTIES
|
||||
|
||||
@@ -162,6 +162,8 @@ foreach(SCRIPT_MODULE ${SCRIPT_MODULE_LIST})
|
||||
${SCRIPT_MODULE_PRIVATE_SOURCES}
|
||||
${SCRIPT_MODULE_PRIVATE_SCRIPTLOADER})
|
||||
target_link_libraries(${SCRIPT_MODULE_PROJECT_NAME}
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
game)
|
||||
set_target_properties(${SCRIPT_MODULE_PROJECT_NAME}
|
||||
@@ -202,6 +204,8 @@ add_library(scripts STATIC
|
||||
${PRIVATE_SOURCES})
|
||||
|
||||
target_link_libraries(scripts
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
game-interface)
|
||||
|
||||
|
||||
@@ -40,6 +40,8 @@ target_include_directories(shared
|
||||
${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
target_link_libraries(shared
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
database)
|
||||
|
||||
|
||||
@@ -44,6 +44,8 @@ endif()
|
||||
set_target_properties(worldserver PROPERTIES LINK_FLAGS "${worldserver_LINK_FLAGS}")
|
||||
|
||||
target_link_libraries(worldserver
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
scripts
|
||||
game
|
||||
|
||||
@@ -27,6 +27,8 @@ target_include_directories(mapextractor
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/loadlib)
|
||||
|
||||
target_link_libraries(mapextractor
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
common
|
||||
mpq)
|
||||
|
||||
@@ -19,6 +19,8 @@ endif()
|
||||
add_executable(mmaps_generator ${PRIVATE_SOURCES})
|
||||
|
||||
target_link_libraries(mmaps_generator
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
common
|
||||
Recast
|
||||
|
||||
@@ -22,8 +22,11 @@ if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||
endif()
|
||||
|
||||
target_link_libraries(vmap4assembler
|
||||
common
|
||||
zlib)
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
common
|
||||
zlib)
|
||||
|
||||
set_target_properties(vmap4assembler
|
||||
PROPERTIES
|
||||
|
||||
@@ -20,8 +20,11 @@ endif()
|
||||
add_executable(vmap4extractor ${PRIVATE_SOURCES})
|
||||
|
||||
target_link_libraries(vmap4extractor
|
||||
common
|
||||
mpq)
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
common
|
||||
mpq)
|
||||
|
||||
set_target_properties(vmap4extractor
|
||||
PROPERTIES
|
||||
|
||||
Reference in New Issue
Block a user