{"id":3621,"date":"2023-01-25T13:03:35","date_gmt":"2023-01-25T13:03:35","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=3621"},"modified":"2026-06-17T09:15:25","modified_gmt":"2026-06-17T08:15:25","slug":"issues-with-building-or-running-code","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/microcontrollers\/programming-in-c-c\/compilers-and-ides-programming-in-c-c\/visual-studio-code\/issues-with-building-or-running-code","title":{"rendered":"Issues with building or running code?"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">CMake Error: The current CMakeCache.txt directory #### is different than the directory ####<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">CMake has a cache which will have wrong paths after you move or rename a project. To clear it in Visual Studio Code:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Settings icon > Command Pallet > Enter \u201cCMake:Delete Cache and Reconfigure\u201d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CMake Error: The current CMakeCache.txt directory #### is different than the directory #### CMake has a cache which will have wrong paths after you move or rename a project. To clear it in Visual Studio Code: Settings icon > Command Pallet > Enter \u201cCMake:Delete Cache and Reconfigure\u201d<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[178],"tags":[],"class_list":["post-3621","post","type-post","status-publish","format-standard","hentry","category-visual-studio-code"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/3621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=3621"}],"version-history":[{"count":2,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/3621\/revisions"}],"predecessor-version":[{"id":3623,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/3621\/revisions\/3623"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=3621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=3621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=3621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}