From e7fd8c10f03c99a373eb800cf03ba019dc35f81a Mon Sep 17 00:00:00 2001 From: Julian Büning Date: Tue, 17 Nov 2020 10:20:35 +0100 Subject: slightly improve C++-related CMake strings --- CMakeLists.txt | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index cc739d65..ba1e221b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -557,20 +557,24 @@ endif() ################################################################################ # KLEE libcxx support ################################################################################ -option(ENABLE_KLEE_LIBCXX "Enable libcxx for klee" OFF) +option(ENABLE_KLEE_LIBCXX "Enable libc++ for klee" OFF) if (ENABLE_KLEE_LIBCXX) - message(STATUS "klee-libcxx support enabled") + message(STATUS "klee-libc++ support enabled") set(SUPPORT_KLEE_LIBCXX 1) # For config.h - set(KLEE_LIBCXX_DIR "" CACHE PATH "Path to root directory with libcxx shared object") + set(KLEE_LIBCXX_DIR "" CACHE PATH "Path to directory containing libc++ shared object (bitcode)") if (NOT EXISTS "${KLEE_LIBCXX_DIR}") message(FATAL_ERROR - "${KLEE_LIBCXX_PATH} does not exist. Try passing -DKLEE_LIBCXX_DIR=") + "KLEE_LIBCXX_DIR (\"${KLEE_LIBCXX_DIR}\") does not exist.\n" + "Try passing -DKLEE_LIBCXX_DIR= to CMake where is the path" + "to the directory containing the libc++ shared object file (as bitcode).") endif() - set(KLEE_LIBCXX_INCLUDE_DIR "" CACHE PATH "Path to libcxx include directory") + set(KLEE_LIBCXX_INCLUDE_DIR "" CACHE PATH "Path to libc++ include directory") if (NOT EXISTS "${KLEE_LIBCXX_INCLUDE_DIR}") message(FATAL_ERROR - "${KLEE_LIBCXX_INCLUDE_DIR} does not exist. Try passing -DKLEE_LIBCXX_INCLUDE_DIR=") + "KLEE_LIBCXX_INCLUDE_DIR (\"${KLEE_LIBCXX_INCLUDE_DIR}\") does not exist.\n" + "Try passing -DKLEE_LIBCXX_INCLUDE_DIR= to CMake where is the" + "libc++ include directory.") endif() message(STATUS "Use libc++ include path: \"${KLEE_LIBCXX_INCLUDE_DIR}\"") @@ -604,7 +608,7 @@ if (ENABLE_KLEE_LIBCXX) list(APPEND KLEE_COMPONENT_CXX_DEFINES -DKLEE_LIBCXX_BC_NAME=\"${KLEE_LIBCXX_BC_NAME}\") - # Add libcxx to the install target. We install the original + # Add libc++ to the install target. We install the original # file rather than the symlink because CMake would just copy the symlink # rather than the file. install(FILES "${KLEE_LIBCXX_BC_PATH}" @@ -623,14 +627,16 @@ endif() option(ENABLE_KLEE_EH_CXX "Enable support for C++ Exceptions" OFF) if (ENABLE_KLEE_EH_CXX) if (NOT ENABLE_KLEE_LIBCXX) - message(FATAL_ERROR "C++ Exception support requires klee-libcxx." - "Pass `-DENABLE_KLEE_LIBCXX=ON` to enable it.") + message(FATAL_ERROR "C++ Exception support requires klee-libc++." + "Pass -DENABLE_KLEE_LIBCXX=ON to CMake to enable it.") endif() - set(KLEE_LIBCXXABI_SRC_DIR "" CACHE PATH "Path to libcxxabi source directory") + set(KLEE_LIBCXXABI_SRC_DIR "" CACHE PATH "Path to libc++abi source directory") if (NOT EXISTS "${KLEE_LIBCXXABI_SRC_DIR}") message(FATAL_ERROR - "${KLEE_LIBCXXABI_SRC_DIR} does not exist. Try passing -DKLEE_LIBCXXABI_SRC_DIR=") + "KLEE_LIBCXXABI_SRC_DIR (\"${KLEE_LIBCXXABI_SRC_DIR}\") does not exist.\n" + "Try passing -DKLEE_LIBCXXABI_SRC_DIR= to CMake where is the" + "libc++abi source directory.") endif() message(STATUS "Use libc++abi source path: \"${KLEE_LIBCXXABI_SRC_DIR}\"") -- cgit 1.4.1