Files
Viano-Core/dep/fmt/CMakeLists.txt
T
Ryan TurnerandFlyingArowana 4c7cb78247 Cmake: include check_symbol_exists in fmt cmakeLists txt file to fix cmake under windows (#466)
Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.26200.
The C compiler identification is MSVC 19.44.35222.0
The CXX compiler identification is MSVC 19.44.35222.0
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
Detecting C compile features
Detecting C compile features - done
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
Detecting CXX compile features
Detecting CXX compile features - done
Detected 64-bit platform
MSVC: Minimum version required is 19.32, found 19.44.35222.0 - ok!
MSVC: 64-bit platform, enforced -D_WIN64 parameter
MSVC: Enabled increased number of sections in object files
MSVC: Overloaded standard names
MSVC: Disabled NON-SECURE warnings
MSVC: Disabled POSIX warnings
MSVC: Disabled generic compiletime warnings
Found MySQL:
Found Git: C:/Program Files/Git/cmd/git.exe (found suitable version "2.47.0.windows.2", minimum required is "1.7")
Found MySQL:   found components: binary
Found MySQL executable: C:/Program Files/MySQL/MySQL Workbench 8.0 CE/mysql.exe

* TrinityCore revision   : 716f480b79 2026-05-05 11:31:32 +0200 (master branch)

* Install core to        : C:/Program Files (x86)/TrinityCore

* Build world/auth       : Yes (default)
* Build with scripts     : Yes (static)
* Build map/vmap tools   : Yes (default)
* Build unit tests       : No (default)
* Unity build enabled    : No (default)
* Build core w/PCH       : Yes (default)
* Build scripts w/PCH    : Yes (default)
* Show compile-warnings  : No  (default)
* Use coreside debug     : No  (default)
* Show source tree       : Yes (hierarchical)
* Use GIT revision hash  : Yes (default)

Performing Test CMAKE_HAVE_LIBC_PTHREAD
Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
Looking for pthread_create in pthreads
Looking for pthread_create in pthreads - not found
Looking for pthread_create in pthread
Looking for pthread_create in pthread - not found
Found Threads: TRUE
Boost toolset is unknown (compiler MSVC 19.44.35222.0)
Boost toolset is unknown (compiler MSVC 19.44.35222.0)
Boost toolset is unknown (compiler MSVC 19.44.35222.0)
Boost toolset is unknown (compiler MSVC 19.44.35222.0)
Boost toolset is unknown (compiler MSVC 19.44.35222.0)
Boost toolset is unknown (compiler MSVC 19.44.35222.0)
Boost toolset is unknown (compiler MSVC 19.44.35222.0)
Boost toolset is unknown (compiler MSVC 19.44.35222.0)
CMake Error at dep/fmt/CMakeLists.txt:18 (check_symbol_exists):
  Unknown CMake command "check_symbol_exists".

Configuring incomplete, errors occurred!

Co-authored-by: FlyingArowana <TheSCREWEDSoftware@users.noreply.github.com>
2026-06-07 19:45:01 +02:00

64 lines
1.5 KiB
CMake

# This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
set(strtod_l_headers stdlib.h)
include(CheckSymbolExists)
if (APPLE)
set(strtod_l_headers ${strtod_l_headers} xlocale.h)
endif ()
if(WIN32)
check_symbol_exists(_strtod_l "${strtod_l_headers}" HAVE_STRTOD_L)
else()
check_symbol_exists(strtod_l "${strtod_l_headers}" HAVE_STRTOD_L)
endif()
set(FMT_HEADERS
include/fmt/chrono.h
include/fmt/color.h
include/fmt/compile.h
include/fmt/core.h
include/fmt/format.h
include/fmt/format-inl.h
include/fmt/locale.h
include/fmt/os.h
include/fmt/ostream.h
include/fmt/posix.h
include/fmt/printf.h
include/fmt/ranges.h)
set(FMT_SOURCES
src/format.cc
src/os.cc)
add_library(fmt STATIC ${FMT_SOURCES} ${FMT_HEADERS})
if (HAVE_STRTOD_L)
target_compile_definitions(fmt
PUBLIC
FMT_LOCALE)
endif()
target_include_directories(fmt
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include)
target_link_libraries(fmt
PRIVATE
trinity-dependency-interface)
set_target_properties(fmt
PROPERTIES
FOLDER
"dep")