diff --git a/java/src/main/native/CMakeLists.txt b/java/src/main/native/CMakeLists.txt index 053312e9e72..74cea21d8c5 100644 --- a/java/src/main/native/CMakeLists.txt +++ b/java/src/main/native/CMakeLists.txt @@ -154,7 +154,7 @@ if(NOT USE_NVTX) endif() if(CUDF_JNI_ENABLE_PROFILING) - target_compile_definitions(cudfjni PUBLIC CUDF_JNI_ENABLE_PROFILING) + target_compile_definitions(cudfjni PRIVATE CUDF_JNI_ENABLE_PROFILING) endif() if(CUDF_JNI_LIBCUDF_STATIC AND BUILD_SHARED_LIBS)