From 4dd219f55b1ac2e11d71b2faf177bce77b977a8f Mon Sep 17 00:00:00 2001 From: mpilman Date: Wed, 22 May 2019 18:07:38 -0700 Subject: [PATCH] made probes follow c naming rules --- cmake/FlowCommands.cmake | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmake/FlowCommands.cmake b/cmake/FlowCommands.cmake index 199c74360b..2a73d1e21c 100644 --- a/cmake/FlowCommands.cmake +++ b/cmake/FlowCommands.cmake @@ -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})