Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

CMake Warning: CMAKE_EXPORT_COMPILE_COMMANDS not used; compile_commands.json not generated #663

@andrewzwicky

Description

@andrewzwicky

Trying to build cquery with fa2fd29, I get the following error, and compile_commands.json is not generated.

>>> cmake --version
cmake version 3.10.3
>>> cmake .. -DCMAKE_INSTALL_PREFIX=release -DCMAKE_EXPORT_COMPILE_COMMANDS=YES -DCMAKE_GENERATOR_PLATFORM=x64
-- Building for: Visual Studio 14 2015
-- The CXX compiler identification is MSVC 19.0.23026.0
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using downloaded Clang
-- Downloading Clang 6.0.0 (https://releases.llvm.org/6.0.0/LLVM-6.0.0-win64.exe) ...
-- 7-Zip not found in PATH
-- Downloading 7-Zip 1801 (https://www.7-zip.org/a/7z1801-x64.msi) ...
-- Extracting downloaded 7-Zip ...
-- Extracting downloaded Clang with 7-Zip ...
-- Found Clang: D:/_Repository/cquery/build/LLVM-6.0.0-win64/lib/libclang.lib (found suitable version "6.0.0", minimum required is "6.0.0")
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - not found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_COMPILE_COMMANDS


-- Build files have been written to: D:/_Repository/cquery/build

Debug build doesn't make a difference.

>>> cmake .. -DCMAKE_INSTALL_PREFIX=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=YES -DCMAKE_GENERATOR_PLATFORM=x64
-- Building for: Visual Studio 14 2015
-- The CXX compiler identification is MSVC 19.0.23026.0
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using downloaded Clang
-- Downloading Clang 6.0.0 (https://releases.llvm.org/6.0.0/LLVM-6.0.0-win64.exe) ...
-- 7-Zip not found in PATH
-- Downloading 7-Zip 1801 (https://www.7-zip.org/a/7z1801-x64.msi) ...
-- Extracting downloaded 7-Zip ...
-- Extracting downloaded Clang with 7-Zip ...
-- Found Clang: D:/_Repository/cquery/build/LLVM-6.0.0-win64/lib/libclang.lib (found suitable version "6.0.0", minimum required is "6.0.0")
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - not found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_COMPILE_COMMANDS


-- Build files have been written to: D:/_Repository/cquery/build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions