mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
If OSX-compile fucks up because of this, then report fixes on the tracker as usual, not through hotpatches going through other lead devs.
42 lines
1.2 KiB
CMake
42 lines
1.2 KiB
CMake
# Package overloads - Linux
|
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
if (NOT NOJEM)
|
|
set(JEMALLOC_LIBRARY "jemalloc")
|
|
message(STATUS "UNIX: Using jemalloc")
|
|
endif()
|
|
endif()
|
|
|
|
# set default configuration directory
|
|
if( NOT CONF_DIR )
|
|
set(CONF_DIR ${CMAKE_INSTALL_PREFIX}/etc)
|
|
message(STATUS "UNIX: Using default configuration directory")
|
|
endif()
|
|
|
|
# set default library directory
|
|
if( NOT LIBSDIR )
|
|
set(LIBSDIR ${CMAKE_INSTALL_PREFIX}/lib)
|
|
message(STATUS "UNIX: Using default library directory")
|
|
endif()
|
|
|
|
# configure uninstaller
|
|
configure_file(
|
|
"${CMAKE_SOURCE_DIR}/cmake/platform/cmake_uninstall.in.cmake"
|
|
"${CMAKE_BINARY_DIR}/cmake_uninstall.cmake"
|
|
@ONLY
|
|
)
|
|
message(STATUS "UNIX: Configuring uninstall target")
|
|
|
|
# create uninstaller target (allows for using "make uninstall")
|
|
add_custom_target(uninstall
|
|
"${CMAKE_COMMAND}" -P "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake"
|
|
)
|
|
message(STATUS "UNIX: Created uninstall target")
|
|
|
|
if(CMAKE_C_COMPILER MATCHES "gcc")
|
|
include(${CMAKE_SOURCE_DIR}/cmake/compiler/gcc/settings.cmake)
|
|
elseif(CMAKE_C_COMPILER MATCHES "icc")
|
|
include(${CMAKE_SOURCE_DIR}/cmake/compiler/icc/settings.cmake)
|
|
elseif(CMAKE_C_COMPILER MATCHES "clang")
|
|
include(${CMAKE_SOURCE_DIR}/cmake/compiler/clang/settings.cmake)
|
|
endif()
|