File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1316,6 +1316,7 @@ struct DeviceConfigCaps
1316
1316
1317
1317
foreach (INDEX RANGE ${LAST_INDEX} )
1318
1318
string (JSON INPUT GET "${IMPL_INPUTS} " ${INDEX} INPUT )
1319
+ string (JSON BASE_KEY GET "${IMPL_INPUTS} " ${INDEX} KEY )
1319
1320
string (JSON COMPILE_OPTIONS_LENGTH LENGTH "${IMPL_INPUTS} " ${INDEX} COMPILE_OPTIONS )
1320
1321
1321
1322
set (COMPILE_OPTIONS "" )
@@ -1338,10 +1339,6 @@ struct DeviceConfigCaps
1338
1339
endif ()
1339
1340
endif ()
1340
1341
1341
- get_filename_component (INPUT_NOEXT "${INPUT} " NAME_WLE )
1342
- get_filename_component (INPUT_DIR "${INPUT} " DIRECTORY )
1343
- set (BASE_KEY "${INPUT_DIR} /${INPUT_NOEXT} .spv" )
1344
-
1345
1342
set (HAS_CAPS FALSE )
1346
1343
set (CAPS_LENGTH 0 )
1347
1344
string (JSON CAPS_TYPE TYPE "${IMPL_INPUTS} " ${INDEX} CAPS )
@@ -1375,7 +1372,11 @@ struct DeviceConfigCaps
1375
1372
endif ()
1376
1373
1377
1374
list (LENGTH CAP_NAMES NUM_CAPS )
1378
- set (TARGET_INPUT "${CMAKE_CURRENT_SOURCE_DIR} /${INPUT} " )
1375
+
1376
+ set (TARGET_INPUT "${INPUT} " )
1377
+ if (NOT IS_ABSOLUTE "${TARGET_INPUT} " )
1378
+ set (TARGET_INPUT "${CMAKE_CURRENT_SOURCE_DIR} /${TARGET_INPUT} " )
1379
+ endif ()
1379
1380
1380
1381
function (GENERATE_KEYS PREFIX CAP_INDEX CAPS_EVAL_PART )
1381
1382
if (NUM_CAPS EQUAL 0 OR CAP_INDEX EQUAL ${NUM_CAPS} )
You can’t perform that action at this time.
0 commit comments