cmake - Clion CMakeLists.txt not found when switching PC -


i'm having issues clion (1.0.1) , cmakelists.txt.

i use github projects, , commit them directly within ide. if checkout project on different computer, ide looks cmakelists.txt in original pc's directory.

the specific error message reported clion this:

error: cmakelists.txt not found in c:\users\chris\clionprojects\sdltestclion 

however, linux machine, there's no c drive.

here's i've tried:

  • file > invalidate caches/restart
  • change project root (from cmake window; obvious solution)
  • file > settings > build, execution, deployment > cmake
    • there no settings or variables here indicate directory above.

i can't find else, either i'm missing or bugged in version 1.0.1 , need sift through project files change path clion looks cmakelists.txt file.

well, found issue. far can tell, in version 1.0.1 there no way remedy problem through ide.

solution:

  • go projectdir/.idea
  • open misc.xml
  • edit field project_dir point directory project's cmakelists.txt.

i think bug , field should updated when choosing new project root. temporary solution may add misc.xml .gitignore haven't tested , don't know if cause other problems or if ide automatically regenerate file.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -