File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1238,6 +1238,10 @@ if(NOT "${CUSTOM_OS_RELEASE_PATH}" STREQUAL "")
12381238 message (STATUS "Custom file path of os_release: ${CUSTOM_OS_RELEASE_PATH} " )
12391239 target_compile_definitions (libfastfetch PRIVATE FF_CUSTOM_OS_RELEASE_PATH=${CUSTOM_OS_RELEASE_PATH} )
12401240endif ()
1241+ if (NOT "${CUSTOM_LSB_RELEASE_PATH} " STREQUAL "" )
1242+ message (STATUS "Custom file path of lsb_release: ${CUSTOM_LSB_RELEASE_PATH} " )
1243+ target_compile_definitions (libfastfetch PRIVATE FF_CUSTOM_LSB_RELEASE_PATH=${CUSTOM_LSB_RELEASE_PATH} )
1244+ endif ()
12411245
12421246if (NOT BINARY_LINK_TYPE STREQUAL "dlopen" )
12431247 message (STATUS "Enabling custom link type: ${BINARY_LINK_TYPE} " )
Original file line number Diff line number Diff line change @@ -252,7 +252,9 @@ static void detectOS(FFOSResult* os)
252252{
253253 #ifdef FF_CUSTOM_OS_RELEASE_PATH
254254 parseOsRelease (FF_STR (FF_CUSTOM_OS_RELEASE_PATH ), os );
255- parseLsbRelease (FF_STR (FF_CUSTOM_OS_RELEASE_PATH ), os );
255+ #ifdef FF_CUSTOM_LSB_RELEASE_PATH
256+ parseLsbRelease (FF_STR (FF_CUSTOM_LSB_RELEASE_PATH ), os );
257+ #endif
256258 return ;
257259 #endif
258260
You can’t perform that action at this time.
0 commit comments