Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Changing File Name  (Read 178 times)

0 Members and 1 Guest are viewing this topic.


  • Newbie
  • *
  • Posts: 1
    • View Profile
Changing File Name
« on: January 19, 2024, 08:46:37 pm »
I want to use SFML on windows 11 with CLION, and can succesfully run it using the git repository. However I want to wholly change the project name if possible. For example, If I change all occurrences of 'CMakeSFMLProject' in CMAKELists.txt to 'abc'

I get error -
ninja: error: unknown target 'CMakeSFMLProject', and my project's header in the CLION window is also CMakeSFMLProject.

Is it possible to wholly change the project name after importing from version control?


  • SFML Team
  • Hero Member
  • *****
  • Posts: 10846
    • View Profile
    • development blog
    • Email
Re: Changing File Name
« Reply #1 on: January 19, 2024, 09:02:15 pm »
You probably have to delete the cache and regenerate the project. Not sure how CLion handles such a project name change.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
Dev Blog: https://duerrenberger.dev/blog/