Behebung von 'Unknown CMake command "check_symbol_exists"'
English
Deutsch
Wenn du CMake-Code hast, der check_symbol_exists(...) verwendet, wie
CMakeLists.txt
list(APPEND CMAKE_REQUIRED_LIBRARIES m)
check_symbol_exists(atan2 math.h HAVE_ATAN2)aber du eine Fehlermeldung wie diese erhältst
error_message.txt
CMake Error at CMakeLists.txt:8 (check_symbol_exists):
Unknown CMake command "check_symbol_exists".
-- Configuring incomplete, errors occurred!musst du hinzufügen
CMakeLists_fixed.txt
include(CheckSymbolExists)in der Nähe des Anfangs deiner CMakeLists.txt (vor deinem ersten Aufruf von check_symbol_exists()).
Check out similar posts by category:
CMake
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow