Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What is going on with this article?
@padawan_e15

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

More than 1 year has passed since last update.

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

0
Help us understand the problem. What is going on with this article?
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
padawan_e15
情報系大学院生でした。自然言語処理系エンジニアワナビー。

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
0
Help us understand the problem. What is going on with this article?