Skip to content

Commit

Permalink
Adding the dl library only on UNIX platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmet Bilgili committed Mar 29, 2013
1 parent 4002890 commit 79c2249
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion FindVTune.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(VTUNE DEFAULT_MSG
VTUNE_INCLUDE_DIR VTUNE_ITTNOTIFY_LIBRARY)

set(VTUNE_INCLUDE_DIRS ${VTUNE_INCLUDE_DIR})
set(VTUNE_LIBRARIES ${VTUNE_ITTNOTIFY_LIBRARY} dl)
set(VTUNE_LIBRARIES ${VTUNE_ITTNOTIFY_LIBRARY})
if(UNIX)
list(APPEND VTUNE_LIBRARIES dl)
endif()
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DINTEL_NO_ITTNOTIFY_API")
set(CMAKE_CXX_FLAGS_RELEASE
"${CMAKE_CXX_FLAGS_RELEASE} -DINTEL_NO_ITTNOTIFY_API")
Expand Down

0 comments on commit 79c2249

Please sign in to comment.