Help us understand the problem. What is going on with this article?

エラー " project PROJECT called with incorrect number of arguments"

CLionでcmakeのbuildエラー

project PROJECT called with incorrect number of arguments
CMakeLists.txt
cmake_minimum_required(VERSION 3.15)
project()

set(CMAKE_CXX_STANDARD 11)

add_executable(PCAD main.cpp)

プロジェクト名を日本語にしていた.するとproject()のカッコ内が空欄になっていた.
このproject()が日本語のディレクトリ名を認識できなかったことが原因
project()
->
project(ディレクトリ名)

これでOK

参考文献

https://qiita.com/janus_wel/items/a673793d448c72cbc95e
https://qiita.com/hasepy/items/22cbaa9e232f5dc891ca

padawan_e15
情報系大学院生です。自然言語処理。
http://forhighlow0.hatenablog.com
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした