Rename a mulle-sde project in CMakeLists.txt

· nat's blog


If you have a library and "just" want to rename it in CMakeLists.txt, say from:

1project( Typo VERSION 0.0.1 LANGUAGES C)

to:

1project( Foo VERSION 0.0.1 LANGUAGES C)

Then you do mulle-sde recraft and you get errors, why ?

1CMake Error: File /home/src/srcO/MulleFoundation/MulleObjCOSFoundation/research/mulle-crossobjc-test/cmake/share/Foo-config.cmake.in does not exist.
2CMake Error at /usr/share/cmake-3.28/Modules/CMakePackageConfigHelpers.cmake:344 (configure_file):
3  configure_file Problem configuring file
4Call Stack (most recent call first):
5  cmake/share/InstallCMakePackage.cmake:39 (configure_package_config_file)
6  CMakeLists.txt:98 (include)

It's a readonly file in cmake/share ??? Well you can change it, if you run mulle-sde upgrade but you have to do

mulle-sde env --project set PROJECT_NAME "Foo"

before upgrading, else nothing changes.

last updated: