Minor license path fixes (#6551)

* Fix CMakeLists
* Fix splash.cc
This commit is contained in:
Thanatomanic 2022-08-18 20:58:50 +02:00 committed by GitHub
parent 6f53844b74
commit c58f582505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -725,7 +725,7 @@ add_custom_target(
# End generating AboutThisBuild.txt
install(FILES AUTHORS.txt DESTINATION "${CREDITSDIR}")
install(FILES LICENSE.txt DESTINATION "${LICENCEDIR}")
install(FILES LICENSE DESTINATION "${LICENCEDIR}")
install(FILES "${CMAKE_BINARY_DIR}/AboutThisBuild.txt"
DESTINATION "${CREDITSDIR}")
install(

View File

@ -178,7 +178,7 @@ Splash::Splash (Gtk::Window& parent) : Gtk::Dialog(M("GENERAL_ABOUT"), parent, t
}
// Tab 4: the license
std::string licenseFileName = Glib::build_filename (licensePath, "LICENSE.txt");
std::string licenseFileName = Glib::build_filename (licensePath, "LICENSE");
if ( Glib::file_test(licenseFileName, (Glib::FILE_TEST_EXISTS)) ) {
FILE *f = g_fopen (licenseFileName.c_str (), "rt");