Merge pull request #2099 from Tilka/vtune
Fix VTune static library dependencies
This commit is contained in:
commit
3ab006b8d1
|
@ -348,8 +348,10 @@ if(VTUNE)
|
|||
endif()
|
||||
add_definitions(-DUSE_VTUNE)
|
||||
include_directories("${VTUNE_DIR}/include")
|
||||
list(APPEND LIBS "${VTUNE_DIR}/lib64/libjitprofiling.a")
|
||||
list(APPEND LIBS "${VTUNE_DIR}/lib64/libittnotify.a")
|
||||
set(VTUNE_LIBRARIES
|
||||
"${VTUNE_DIR}/lib64/libjitprofiling.a"
|
||||
"${VTUNE_DIR}/lib64/libittnotify.a"
|
||||
)
|
||||
endif(VTUNE)
|
||||
|
||||
if(ANDROID)
|
||||
|
|
|
@ -60,7 +60,7 @@ if(WIN32)
|
|||
set(SRCS ${SRCS} ExtendedTrace.cpp)
|
||||
endif(WIN32)
|
||||
|
||||
set(LIBS "${CMAKE_THREAD_LIBS_INIT}")
|
||||
set(LIBS "${CMAKE_THREAD_LIBS_INIT}" ${VTUNE_LIBRARIES})
|
||||
if(NOT APPLE AND NOT ANDROID)
|
||||
set(LIBS ${LIBS} rt)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue