1. padawan_e15

    Posted

    padawan_e15
Changes in title
+エラー " project PROJECT called with incorrect number of arguments"
Changes in tags
Changes in body
Source | HTML | Preview
@@ -0,0 +1,26 @@
+# 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(ディレクトリ名)`
+
+
+これでOK
+