Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #6681 from Tilka/vtune_new
CMake: update and simplify VTune integration
  • Loading branch information
degasus committed May 5, 2018
2 parents 31efec6 + dd6a505 commit ec37857
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions CMakeLists.txt
Expand Up @@ -60,7 +60,7 @@ if(APPLE)
endif()

if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
option(VTUNE "Enable Intel VTune integration for JIT symbols." OFF)
option(ENABLE_VTUNE "Enable Intel VTune integration for JIT code." OFF)

if(NOT ANDROID)
option(ENABLE_EVDEV "Enables the evdev controller backend" ON)
Expand Down Expand Up @@ -342,14 +342,8 @@ if(GDBSTUB)
add_definitions(-DUSE_GDBSTUB)
endif()

if(VTUNE)
if(EXISTS "$ENV{VTUNE_AMPLIFIER_XE_2015_DIR}")
set(VTUNE_DIR "$ENV{VTUNE_AMPLIFIER_XE_2015_DIR}")
elseif(EXISTS "$ENV{VTUNE_AMPLIFIER_XE_2013_DIR}")
set(VTUNE_DIR "$ENV{VTUNE_AMPLIFIER_XE_2013_DIR}")
else()
message(ERROR "Could find neither VTUNE_AMPLIFIER_XE_2015_DIR nor VTUNE_AMPLIFIER_XE_2013_DIR.")
endif()
if(ENABLE_VTUNE)
set(VTUNE_DIR "/opt/intel/vtune_amplifier")
add_definitions(-DUSE_VTUNE)
include_directories("${VTUNE_DIR}/include")
set(VTUNE_LIBRARIES
Expand Down

0 comments on commit ec37857

Please sign in to comment.