Skip to content

Commit

Permalink
Re #19470. Add 14.04 linker options required for std::call_once.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonHeybrock committed May 3, 2017
1 parent 07e9063 commit ec3dad5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Framework/Indexing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ set_property ( TARGET Indexing PROPERTY FOLDER "MantidFramework" )

target_link_libraries ( Indexing LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME} ${MANTIDLIBS} )

if( "${UNIX_CODENAME}" STREQUAL "trusty" )
# Special linking options are required for some older Ubuntu gcc builds to use std::thread, specific options found here:
# http://stackoverflow.com/questions/8649828/what-is-the-correct-link-options-to-use-stdthread-in-gcc-under-linux#comment35723468_8649908
target_link_libraries ( Indexing LINK_PRIVATE -Wl,--no-as-needed -pthread )
endif()

# Add the unit tests directory
add_subdirectory ( test )

Expand Down

0 comments on commit ec3dad5

Please sign in to comment.