Fix: ITT_INCLUDE_DIR was not correctly detected (#748)
authoremmanuelattia-philips <66060489+emmanuelattia-philips@users.noreply.github.com>
Fri, 5 Jun 2020 11:46:39 +0000 (13:46 +0200)
committerGitHub <noreply@github.com>
Fri, 5 Jun 2020 11:46:39 +0000 (14:46 +0300)
inference-engine/cmake/FindITT.cmake

index 6c4003d..45917b8 100644 (file)
@@ -25,9 +25,7 @@ endif()
 if(DEFINED INTEL_VTUNE_DIR)
     message(STATUS "INTEL_VTUNE_DIR = ${INTEL_VTUNE_DIR}")
 
-    find_path(ITT_INCLUDE_DIR
-    FILES
-        ittnotify.h
+    find_path(ITT_INCLUDE_DIR ittnotify.h
     PATHS "${INTEL_VTUNE_DIR}/include/")
 
     find_library(ITT_LIB