File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,9 +10,6 @@ function(build_src output filename)
1010 endif ()
1111
1212 file (RELATIVE_PATH file ${CMAKE_CURRENT_SOURCE_DIR} ${filename} )
13- get_filename_component (basedir ${file} DIRECTORY )
14- set (basedir "/${basedir} " )
15- get_filename_component (basename ${filename} NAME )
1613 set (outfile ${CMAKE_CURRENT_BINARY_DIR} /build/${file} )
1714 set (${output} ${${output} } ${outfile} PARENT_SCOPE )
1815 if (USE_MATCHCOMPILER STREQUAL "Verify" )
@@ -21,11 +18,11 @@ function(build_src output filename)
2118 add_custom_command (
2219 OUTPUT ${outfile}
2320 COMMAND ${PYTHON_EXECUTABLE} "${PROJECT_SOURCE_DIR} /tools/matchcompiler.py"
24- --read-dir= "${CMAKE_CURRENT_SOURCE_DIR}${basedir} "
25- --write-dir= "${CMAKE_CURRENT_BINARY_DIR} /build${basedir} "
21+ --read-dir= "${CMAKE_CURRENT_SOURCE_DIR} "
22+ --write-dir= "${CMAKE_CURRENT_BINARY_DIR} /build"
2623 --line
2724 ${verify_option}
28- ${basename }
25+ ${file }
2926 DEPENDS ${file}
3027 DEPENDS ${PROJECT_SOURCE_DIR} /tools/matchcompiler.py
3128 )
You can’t perform that action at this time.
0 commit comments