From 7f63ec1315e7d8f4c0b81163bcbe2b8785205b80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 18 Nov 2024 13:35:10 +0800 Subject: [PATCH] CMake: fix the destination where `fastfetch_pciids.c.inc` is generated --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d64c3d343..d50a249ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -268,11 +268,11 @@ else() file(READ "src/data/help.json" DATATEXT_JSON_HELP) endif() -if(ENABLE_EMBEDDED_PCIIDS AND NOT EXISTS "fastfetch_pciids.c.inc") +if(ENABLE_EMBEDDED_PCIIDS AND NOT EXISTS "${PROJECT_BINARY_DIR}/fastfetch_pciids.c.inc") if(Python_FOUND) message(STATUS "Generating 'fastfetch_pciids.c.inc'") execute_process(COMMAND ${Python_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/scripts/gen-pciids.py" - OUTPUT_FILE "fastfetch_pciids.c.inc") + OUTPUT_FILE "${PROJECT_BINARY_DIR}/fastfetch_pciids.c.inc") else() message(WARNING "Python3 is not found, 'fastfetch_pciids.c.inc' will not be generated") set(ENABLE_EMBEDDED_PCIIDS OFF)