Fix "Unknown CMake command "check_symbol_exists"."#466
Open
TheSCREWEDSoftware wants to merge 1 commit intoThe-Cataclysm-Preservation-Project:masterfrom
Open
Fix "Unknown CMake command "check_symbol_exists"."#466TheSCREWEDSoftware wants to merge 1 commit intoThe-Cataclysm-Preservation-Project:masterfrom
TheSCREWEDSoftware wants to merge 1 commit intoThe-Cataclysm-Preservation-Project:masterfrom
Conversation
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 : 716f480 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!
Member
|
I can't reproduce the error. What cmake version do you use and how did you reproduce it? |
Author
|
CMake 4.2.2 Configure, choose VS22 (VS26 not supported) and during configuration it threw the error (same as the one in the commit message) Edit: The original post at that I found the solution https://techoverflow.net/2019/06/20/how-to-fix-unknown-cmake-command-check_symbol_exists/ And CMake documentation does suggest it on the top before it's ran https://cmake.org/cmake/help/latest/module/CheckSymbolExists.html |
Contributor
you are on linux, jemalloc's cmakelists pulls in CheckSymbolExists for you |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Unsure if this is the proper fix to this but for me is what worked.