mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Build: Fix problem with acelite
This commit is contained in:
@@ -3,7 +3,7 @@ new file mode 100644
|
||||
index 0000000..acd3d5a
|
||||
--- /dev/null
|
||||
+++ b/dep/acelite/ace/CMakeLists.txt
|
||||
@@ -0,0 +1,337 @@
|
||||
@@ -0,0 +1,348 @@
|
||||
+# Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
||||
+#
|
||||
+# This file is free software; as a special exception the author gives
|
||||
@@ -325,6 +325,11 @@ index 0000000..acd3d5a
|
||||
+ XTI_ATM_Mcast.cpp
|
||||
+)
|
||||
+
|
||||
+if (USE_COREPCH)
|
||||
+ set(ace_PCH_HDR PrecompiledHeaders/WinAcePCH.h)
|
||||
+ set(ace_PCH_SRC PrecompiledHeaders/WinAcePCH.cpp)
|
||||
+endif()
|
||||
+
|
||||
+include_directories(
|
||||
+ ${CMAKE_SOURCE_DIR}/dep/acelite
|
||||
+ ${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders
|
||||
@@ -336,9 +341,15 @@ index 0000000..acd3d5a
|
||||
+
|
||||
+add_definitions(-DACE_BUILD_DLL)
|
||||
+
|
||||
+add_library(ace SHARED ${ace_STAT_SRCS})
|
||||
+add_library(ace SHARED
|
||||
+ ${ace_STAT_SRCS}
|
||||
+ ${ace_PCH_SRC}
|
||||
+)
|
||||
+
|
||||
+add_native_precompiled_header(ace ${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders/WinAcePCH)
|
||||
+# Generate precompiled header
|
||||
+if( USE_COREPCH )
|
||||
+ add_cxx_pch(ace ${ace_PCH_HDR} ${ace_PCH_SRC})
|
||||
+endif()
|
||||
+
|
||||
+install(TARGETS ace RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}")
|
||||
diff --git a/dep/acelite/ace/PrecompiledHeaders/WinAcePCH.cpp b/dep/acelite/ace/PrecompiledHeaders/WinAcePCH.cpp
|
||||
|
||||
@@ -320,6 +320,11 @@ set(ace_STAT_SRCS
|
||||
XTI_ATM_Mcast.cpp
|
||||
)
|
||||
|
||||
if (USE_COREPCH)
|
||||
set(ace_PCH_HDR PrecompiledHeaders/WinAcePCH.h)
|
||||
set(ace_PCH_SRC PrecompiledHeaders/WinAcePCH.cpp)
|
||||
endif()
|
||||
|
||||
include_directories(
|
||||
${CMAKE_SOURCE_DIR}/dep/acelite
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders
|
||||
@@ -331,8 +336,14 @@ set_source_files_properties(Atomic_Op_Sparc.c Rtems_init.c PROPERTIES LANGUAGE C
|
||||
|
||||
add_definitions(-DACE_BUILD_DLL)
|
||||
|
||||
add_library(ace SHARED ${ace_STAT_SRCS})
|
||||
add_library(ace SHARED
|
||||
${ace_STAT_SRCS}
|
||||
${ace_PCH_SRC}
|
||||
)
|
||||
|
||||
add_native_precompiled_header(ace ${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders/WinAcePCH)
|
||||
# Generate precompiled header
|
||||
if( USE_COREPCH )
|
||||
add_cxx_pch(ace ${ace_PCH_HDR} ${ace_PCH_SRC})
|
||||
endif()
|
||||
|
||||
install(TARGETS ace RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}")
|
||||
|
||||
Reference in New Issue
Block a user