Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix shared_core linking error on linux
  • Loading branch information
MariaSemple committed Jan 27, 2020
1 parent 768abfb commit faf2b38
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/cpp/shared_core/CMakeLists.txt
Expand Up @@ -53,6 +53,10 @@ if (UNIX)
system/User.cpp
)

find_library(PTHREAD_LIBRARIES pthread)
set (SHARED_CORE_SYSTEM_LIBS
${PTHREAD_LIBRARIES})

else()

set(SHARED_INCLUDE_DIRS
Expand All @@ -77,7 +81,8 @@ add_library(rstudio-shared-core STATIC ${SHARED_CORE_HEADER_FILES} ${SHARED_CORE
define_source_file_names(rstudio-shared-core)

target_link_libraries(rstudio-shared-core
${Boost_LIBRARIES})
${Boost_LIBRARIES}
${SHARED_CORE_SYSTEM_LIBS})

# Define executable for running unit tests
if (RSTUDIO_UNIT_TESTS_ENABLED)
Expand Down

0 comments on commit faf2b38

Please sign in to comment.