{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":55185766,"defaultBranch":"master","name":"mutils","ownerLogin":"mpmilano","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2016-03-31T21:59:43.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/246817?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1527962836.0","currentOid":""},"activityList":{"items":[{"before":"906f33ff754d7a0b663ad31b21012f74a084e309","after":"81e16d898d1f58a2ce4e58253d4b397783866357","ref":"refs/heads/master","pushedAt":"2023-07-31T15:50:44.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"mpmilano","name":"Mae Milano","path":"/mpmilano","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/246817?s=80&v=4"},"commit":{"message":"A minor change for compatibility with gcc-11 (#3)","shortMessageHtmlLink":"A minor change for compatibility with gcc-11 (#3)"}},{"before":"d53e7fa7cd5146fd2995a7f05d5d01d03d872e67","after":"906f33ff754d7a0b663ad31b21012f74a084e309","ref":"refs/heads/master","pushedAt":"2023-07-31T15:49:59.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"mpmilano","name":"Mae Milano","path":"/mpmilano","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/246817?s=80&v=4"},"commit":{"message":"Fix CMakeLists to properly configure mutilsConfig.cmake (#4)\n\nUsing ${CMAKE_INSTALL_PREFIX} in mutilsConfig.cmake doesn't work because\r\nthat variable is not expanded when \"make install\" is executed, so the\r\nmutilsConfig.cmake that gets installed to e.g. /usr/local/lib/cmake\r\nstill has the literal string ${CMAKE_INSTALL_PREFIX} in it. Then when\r\nanother Cmake project uses find_package(mutils), it loads\r\nmutilsConfig.cmake and replaces ${CMAKE_INSTALL_PREFIX} with whatever\r\nits current value is for that project, even if it's some other directory\r\nlike ~/.local/ and not the directory where mutils is installed. This\r\nresults in the confusing error message that mutils was found, but\r\nlibmutils.so could not be found, because Cmake is looking in the wrong\r\ndirectory after expanding ${CMAKE_INSTALL_PREFIX} in mutils_LIBRARIES.\r\n\r\nThe fix is to use the configure_package_config_file command from\r\nCMakePackageConfigHelpers, and the variable PACKAGE_CMAKE_INSTALL_LIBDIR\r\nwhich gets expanded during make install. I copied these commands from\r\nDerecho's CMakeLists.txt where they work correctly for installing the\r\npackage so that it can be used by another CMake project.","shortMessageHtmlLink":"Fix CMakeLists to properly configure mutilsConfig.cmake (#4)"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAADYMcEEAA","startCursor":null,"endCursor":null}},"title":"Activity ยท mpmilano/mutils"}