Merge pull request #2099 from Tilka/vtune

Fix VTune static library dependencies
This commit is contained in:
Ryan Houdek 2015-02-22 15:19:56 -06:00
commit 3ab006b8d1
2 changed files with 5 additions and 3 deletions

View File

@ -348,8 +348,10 @@ if(VTUNE)
endif() endif()
add_definitions(-DUSE_VTUNE) add_definitions(-DUSE_VTUNE)
include_directories("${VTUNE_DIR}/include") include_directories("${VTUNE_DIR}/include")
list(APPEND LIBS "${VTUNE_DIR}/lib64/libjitprofiling.a") set(VTUNE_LIBRARIES
list(APPEND LIBS "${VTUNE_DIR}/lib64/libittnotify.a") "${VTUNE_DIR}/lib64/libjitprofiling.a"
"${VTUNE_DIR}/lib64/libittnotify.a"
)
endif(VTUNE) endif(VTUNE)
if(ANDROID) if(ANDROID)

View File

@ -60,7 +60,7 @@ if(WIN32)
set(SRCS ${SRCS} ExtendedTrace.cpp) set(SRCS ${SRCS} ExtendedTrace.cpp)
endif(WIN32) endif(WIN32)
set(LIBS "${CMAKE_THREAD_LIBS_INIT}") set(LIBS "${CMAKE_THREAD_LIBS_INIT}" ${VTUNE_LIBRARIES})
if(NOT APPLE AND NOT ANDROID) if(NOT APPLE AND NOT ANDROID)
set(LIBS ${LIBS} rt) set(LIBS ${LIBS} rt)
endif() endif()