made probes follow c naming rules

This commit is contained in:
mpilman 2019-05-22 18:07:38 -07:00 committed by Alex Miller
parent 9b96d8c166
commit 4dd219f55b
1 changed files with 2 additions and 4 deletions

View File

@ -234,11 +234,9 @@ function(add_flow_target)
foreach(src IN LISTS sources AFT_ADDL_SRCS)
get_filename_component(dname ${CMAKE_CURRENT_SOURCE_DIR} NAME_WLE)
message(STATUS "dname: ${dname}")
string(REGEX REPLACE "\\..*" "" fname ${src})
message(STATUS "src: ${src}")
message(STATUS "fname: ${fname}")
set_source_files_properties(${src} PROPERTIES COMPILE_DEFINITIONS FNAME=${dname}/${fname})
string(REPLACE / _ fname ${fname})
set_source_files_properties(${src} PROPERTIES COMPILE_DEFINITIONS FNAME=${dname}_${fname})
endforeach()
set_property(TARGET ${AFT_NAME} PROPERTY SOURCE_FILES ${AFT_SRCS})