Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake: avoid unnecessarily remaking all .mo files on each build
All the .mo files had a dependency on the target directory, which meant that every change to the timestamp of that directory caused all the files to be remade; and each file remade caused a change to the directory's timestamp ... Since CMake 3.0, "cmake -E make_directory" has been deprecated in favor of "file(MAKE_DIRECTORY ...)", so use that instead of the custom command. This means the directories are created when the cmake config is generated, instead of during the subsequent make steps. Note: the mo-update target which builds the .mo files is only run when the build is configured with ENABLE_NLS=ON. Both before and after this change, none of the .mo files are rebuilt when ENABLE_NLS=OFF.
- Loading branch information