abseil / abseil/abseil-cpp

[Bug]: CMake MSBUILD : error MSB1009: Project file does not exist

Offen
#1,556 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C++
Sterne
18.1k
Forks
3.2k
Ø Merge
20 Std. 36 Min.
Gemergte PRs (30 T.)
1

Beschreibung

### Describe the issue

Using the document to install project https://abseil.io/docs/cpp/quickstart-cmake

```
git clone https://github.com/abseil/abseil-cpp.git
cd abseil-cpp
$ mkdir build && cd build
$ cmake -DABSL_BUILD_TESTING=ON -DABSL_USE_GOOGLETEST_HEAD=ON -DCMAKE_CXX_STANDARD=14 ..
$ cmake --build . --target all
```

error
```
error MSB1009: Project file does not exist
```

Because I use visual studio 2022 command prompt, cmake use the generator `Visual Studio 17 2022`.
I replace `cmake --build . --target all` with `cmake --build . --target ALL_BUILD`.

refer to https://stackoverflow.com/questions/71437697/cmake-msbuild-error-msb1009-project-file-does-not-exist

### Steps to reproduce the problem

setp1 install visual studio 2022

step2
https://abseil.io/docs/cpp/quickstart-cmake

### What version of Abseil are you using?

lastest

### What operating system and version are you using?

window11

### What compiler and version are you using?

cl
visual studio 2022

### What build system are you using?

cmake --version
3.26

### Additional context

_No response_

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.