From 5fa7f72b3be094a4cc8de34d9e9b807b98d10976 Mon Sep 17 00:00:00 2001 From: Yohann Uguen Date: Thu, 26 Jan 2023 05:53:00 -0800 Subject: [PATCH] add crr warning when compiling for sim Signed-off-by: Yohann Uguen --- .../C++SYCL_FPGA/ReferenceDesigns/crr/src/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/crr/src/CMakeLists.txt b/DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/crr/src/CMakeLists.txt index 9e1667f88c..970ccceffa 100755 --- a/DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/crr/src/CMakeLists.txt +++ b/DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/crr/src/CMakeLists.txt @@ -94,6 +94,11 @@ add_custom_target(fpga_emu DEPENDS ${EMULATOR_TARGET}) ### FPGA Simulator ############################################################################### add_executable(${SIMULATOR_TARGET} ${SOURCE_FILE}) +add_custom_command(TARGET ${SIMULATOR_TARGET} PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --cyan + "" + COMMENT "Running the simulation flow on the CRR design is very long and is therefore not recommended" + ) target_include_directories(${SIMULATOR_TARGET} PRIVATE ../../../include) set_target_properties(${SIMULATOR_TARGET} PROPERTIES COMPILE_FLAGS "${SIMULATOR_COMPILE_FLAGS}") set_target_properties(${SIMULATOR_TARGET} PROPERTIES LINK_FLAGS "${SIMULATOR_LINK_FLAGS}")