Answers for "Parse error. Expected a command name, got unquoted argument with text "//"."

C++
0

Parse error. Expected a command name, got unquoted argument with text "//".

Solution:
CMake comments start with #, not with // !

How ?
Change any comment line starting with // to start with # instead. 
// Create main executable   --->  #Create main executable


Example error:
prashad@ubuntu:~/working_dir/bgslibrary/build$ make

-- Bulding bgslibrary_core SHARED
CMake Error at /home/prashad/test/objecttracker_gerrit/BlobTracking.h:5:
  Parse error.  Expected a command name, got unquoted argument with text
  "//".
Call Stack (most recent call first):
  CMakeLists.txt:233 (include)
Posted by: Guest on October-12-2020

Code answers related to "Parse error. Expected a command name, got unquoted argument with text "//"."

Browse Popular Code Answers by Language