[x265] [PATCH] cmake: Fix finding vtune to also work in windows
Pradeep Ramachandran
pradeep at multicorewareinc.com
Wed Nov 11 12:32:05 CET 2015
# HG changeset patch
# User Pradeep Ramachandran <pradeep at multicorewareinc.com>
# Date 1447241516 -19800
# Wed Nov 11 17:01:56 2015 +0530
# Node ID 7507ffd194956b82c73ce72eb9e96229e86bb484
# Parent 45ea73c63c12c66e5e5e777e80853c8b3cadf101
cmake: Fix finding vtune to also work in windows
diff -r 45ea73c63c12 -r 7507ffd19495 source/cmake/FindVtune.cmake
--- a/source/cmake/FindVtune.cmake Fri Nov 06 11:55:27 2015 +0530
+++ b/source/cmake/FindVtune.cmake Wed Nov 11 17:01:56 2015 +0530
@@ -10,8 +10,11 @@
include(FindPackageHandleStandardArgs)
find_path(VTUNE_DIR
- NAMES amplxe-vars.sh
- PATHS ENV NUMA_ROOT
+ if(UNIX)
+ NAMES amplxe-vars.sh
+ else()
+ NAMES amplxe-vars.bat
+ endif(UNIX)
HINTS $ENV{VTUNE_AMPLIFIER_XE_2016_DIR} $ENV{VTUNE_AMPLIFIER_XE_2015_DIR}
DOC "Vtune root directory")
More information about the x265-devel
mailing list