Skip to content

Commit

Permalink
Fix linker error on Ubuntu Saucy
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Dec 27, 2013
1 parent 6b0ba17 commit cb073fb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions unittests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if(NOT WIN32)
add_library(gtest /usr/local/share/gtest/src/gtest-all.cc ${gtest_hdrs})
endif()

target_link_libraries(gtest)
target_link_libraries(gtest pthread)
set_target_properties (gtest PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
endif()

Expand All @@ -47,10 +47,6 @@ foreach(test ${tests})
target_link_libraries(${base} dart gtest)
endif()

# Link to pthread if necessary
if(APPLE OR UNIX)
target_link_libraries(${base} pthread)
endif()
set_target_properties(${base} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/tests")

# Add the executable if not to be ignored
Expand Down

0 comments on commit cb073fb

Please sign in to comment.