CMake: update and simplify VTune integration
This commit is contained in:
parent
9dcc8131df
commit
dd6a505380
|
@ -60,7 +60,7 @@ if(APPLE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
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)
|
if(NOT ANDROID)
|
||||||
option(ENABLE_EVDEV "Enables the evdev controller backend" ON)
|
option(ENABLE_EVDEV "Enables the evdev controller backend" ON)
|
||||||
|
@ -342,14 +342,8 @@ if(GDBSTUB)
|
||||||
add_definitions(-DUSE_GDBSTUB)
|
add_definitions(-DUSE_GDBSTUB)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(VTUNE)
|
if(ENABLE_VTUNE)
|
||||||
if(EXISTS "$ENV{VTUNE_AMPLIFIER_XE_2015_DIR}")
|
set(VTUNE_DIR "/opt/intel/vtune_amplifier")
|
||||||
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()
|
|
||||||
add_definitions(-DUSE_VTUNE)
|
add_definitions(-DUSE_VTUNE)
|
||||||
include_directories("${VTUNE_DIR}/include")
|
include_directories("${VTUNE_DIR}/include")
|
||||||
set(VTUNE_LIBRARIES
|
set(VTUNE_LIBRARIES
|
||||||
|
|
Loading…
Reference in New Issue