Skip to content

Commit

Permalink
Ticktock IGN_PROFILER_REMOTERY
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <[email protected]>
  • Loading branch information
methylDragon committed Jun 7, 2022
1 parent b32c7f1 commit 8bd54a0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions profiler/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 8bd54a0

Please sign in to comment.