abseil / abseil/abseil-cpp

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

Đang mở
#1,556 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C++
Star
18.1k
Fork
3.2k
Merge trung bình
20 giờ 36 phút
Pull request đã merge (30 ngày)
1

Mô tả

### 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_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.