diff --git a/Application/src/tracker/misc/CMakeLists.txt b/Application/src/tracker/misc/CMakeLists.txt
index 2fb4d357f734b4a42e8d3cce44b0193e90824720..c609802e17eed600eb9107f75041167b90daa39c 100644
--- a/Application/src/tracker/misc/CMakeLists.txt
+++ b/Application/src/tracker/misc/CMakeLists.txt
@@ -24,7 +24,7 @@ target_link_libraries(tracker_misc PRIVATE
 add_dependencies(tracker_misc TRex::OpenCV)
 
 if(TREX_CONDA_PACKAGE_INSTALL)
-    target_compile_definitions(tracker_misc PRIVATE TREX_PYTHON_PATH="CONDA_PREFIX")
+    target_compile_definitions(tracker_misc PRIVATE TREX_PYTHON_PATH="$ENV{CONDA_PREFIX}")
 else()
     message(STATUS "Adding compile definitions: ${PYTHON_EXECUTABLE}")
     target_compile_definitions(tracker_misc PRIVATE