Skip to content

Commit 7f63ec1

Browse files
committed
CMake: fix the destination where fastfetch_pciids.c.inc is generated
1 parent 6cbbe33 commit 7f63ec1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,11 @@ else()
268268
file(READ "src/data/help.json" DATATEXT_JSON_HELP)
269269
endif()
270270

271-
if(ENABLE_EMBEDDED_PCIIDS AND NOT EXISTS "fastfetch_pciids.c.inc")
271+
if(ENABLE_EMBEDDED_PCIIDS AND NOT EXISTS "${PROJECT_BINARY_DIR}/fastfetch_pciids.c.inc")
272272
if(Python_FOUND)
273273
message(STATUS "Generating 'fastfetch_pciids.c.inc'")
274274
execute_process(COMMAND ${Python_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/scripts/gen-pciids.py"
275-
OUTPUT_FILE "fastfetch_pciids.c.inc")
275+
OUTPUT_FILE "${PROJECT_BINARY_DIR}/fastfetch_pciids.c.inc")
276276
else()
277277
message(WARNING "Python3 is not found, 'fastfetch_pciids.c.inc' will not be generated")
278278
set(ENABLE_EMBEDDED_PCIIDS OFF)

0 commit comments

Comments
 (0)