diff --git a/profiler/src/CMakeLists.txt b/profiler/src/CMakeLists.txt index f73d8c6b..26420b62 100644 --- a/profiler/src/CMakeLists.txt +++ b/profiler/src/CMakeLists.txt @@ -1,4 +1,6 @@ option(GZ_PROFILER_REMOTERY "Enable the Remotery profiler" TRUE) +option(IGN_PROFILER_REMOTERY "Deprecated. Enable the Remotery profiler" + GZ_PROFILER_REMOTERY) set( PROFILER_SRCS @@ -60,9 +62,15 @@ ign_add_component(profiler SOURCES ${PROFILER_SRCS} GET_TARGET_NAME profiler_tar target_compile_definitions(${profiler_target} PRIVATE "GZ_PROFILER_ENABLE=1") target_compile_definitions(${profiler_target} PRIVATE "RMT_USE_METAL=${RMT_USE_METAL}") +# TODO(CH3): Deprecated. Remove on tock. +target_compile_definitions(${profiler_target} PRIVATE "IGN_PROFILER_ENABLE=1") + if(GZ_PROFILER_REMOTERY) target_compile_definitions(${profiler_target} PRIVATE "GZ_PROFILER_REMOTERY=1") + # TODO(CH3): Deprecated. Remove on tock. + target_compile_definitions(${profiler_target} PRIVATE "IGN_PROFILER_REMOTERY=1") + target_include_directories( ${profiler_target} PRIVATE @@ -80,9 +88,9 @@ if(GZ_PROFILER_REMOTERY) endif() ign_build_tests( - TYPE UNIT + TYPE UNIT SOURCES ${PROFILER_TESTS} - LIB_DEPS + LIB_DEPS ${profiler_target} ignition-common${IGN_COMMON_VER}-testing TEST_LIST profiler_tests)