Skip to content

Commit

Permalink
Merge pull request #15 from bilgili/master
Browse files Browse the repository at this point in the history
dl library addition to FindVtune.cmake script taht causes Ubuntu 12.04 to have undefined symbols
  • Loading branch information
eile committed Apr 2, 2013
2 parents 443f134 + 79c2249 commit 2621f10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ if(BOOST_ROOT)
endif()
set(Boost_NO_BOOST_CMAKE ON CACHE BOOL "Enable fix for FindBoost.cmake" )
add_definitions(-DBOOST_ALL_NO_LIB) # Don't use 'pragma lib' on Windows
add_definitions(-DBoost_NO_BOOST_CMAKE) # Fix for CMake problem in FindBoost

include(TestBigEndian)
test_big_endian(BIGENDIAN)
Expand Down
3 changes: 3 additions & 0 deletions FindVTune.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(VTUNE DEFAULT_MSG

set(VTUNE_INCLUDE_DIRS ${VTUNE_INCLUDE_DIR})
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 2621f10

Please sign in to comment.