--- src/cpp/session/CMakeLists.txt.orig 2020-05-18 18:11:10 UTC +++ src/cpp/session/CMakeLists.txt @@ -25,9 +25,9 @@ endif() if(NOT EXISTS "${RSTUDIO_DEPENDENCIES_DIR}/common/mathjax-27") message(FATAL_ERROR "Mathjax 2.7 not found (re-run install-dependencies script to install)") endif() -if(NOT EXISTS "${RSTUDIO_DEPENDENCIES_DIR}/common/pandoc") - message(FATAL_ERROR "pandoc not found (re-run install-dependencies script to install)") -endif() +#if(NOT EXISTS "${RSTUDIO_DEPENDENCIES_DIR}/common/pandoc") +# message(FATAL_ERROR "pandoc not found (re-run install-dependencies script to install)") +#endif() # verify embedded packages are available foreach(PKG ${RSTUDIO_EMBEDDED_PACKAGES}) @@ -38,19 +38,19 @@ foreach(PKG ${RSTUDIO_EMBEDDED_PACKAGES}) endforeach() # verify libclang is installed (Windows only) -if(WIN32) - set(LIBCLANG_VERSION "5.0.2") - set(LIBCLANG_DIR "${RSTUDIO_DEPENDENCIES_DIR}/common/libclang/${LIBCLANG_VERSION}") - if(NOT EXISTS "${LIBCLANG_DIR}") - message(FATAL_ERROR "libclang ${LIBCLANG_VERSION} not found (re-run install-dependencies script to install)") - endif() +#if(WIN32) +# set(LIBCLANG_VERSION "5.0.2") +# set(LIBCLANG_DIR "${RSTUDIO_DEPENDENCIES_DIR}/common/libclang/${LIBCLANG_VERSION}") +# if(NOT EXISTS "${LIBCLANG_DIR}") +# message(FATAL_ERROR "libclang ${LIBCLANG_VERSION} not found (re-run install-dependencies script to install)") +# endif() +# +# set(LIBCLANG_HEADERS_DIR "${RSTUDIO_DEPENDENCIES_DIR}/common/libclang/builtin-headers") +# if(NOT EXISTS "${LIBCLANG_HEADERS_DIR}") +# message(FATAL_ERROR "libclang builtin-headers not found (re-run install-dependencies script to install)") +# endif() +#endif() - set(LIBCLANG_HEADERS_DIR "${RSTUDIO_DEPENDENCIES_DIR}/common/libclang/builtin-headers") - if(NOT EXISTS "${LIBCLANG_HEADERS_DIR}") - message(FATAL_ERROR "libclang builtin-headers not found (re-run install-dependencies script to install)") - endif() -endif() - # include files file(GLOB_RECURSE SESSION_HEADER_FILES "*.h*") @@ -391,6 +391,9 @@ endif() # define executable add_stripped_executable(rsession ${SESSION_SOURCE_FILES} ${SESSION_HEADER_FILES}) +# additional libraries +target_link_libraries(rsession -L${FREEBSD_LIBDIR} -linotify -lprocstat) + # skip libR RPATH at development time if(RSTUDIO_DEVELOPMENT OR RSTUDIO_RUN_IN_PLACE) set_target_properties(rsession PROPERTIES SKIP_BUILD_RPATH TRUE) @@ -519,11 +522,11 @@ if (NOT RSTUDIO_SESSION_WIN32) # install pandoc set(PANDOC_VERSION "2.7.3" CACHE INTERNAL "Pandoc version") - set(PANDOC_BIN "${RSTUDIO_DEPENDENCIES_DIR}/common/pandoc/${PANDOC_VERSION}") - file(GLOB PANDOC_FILES "${PANDOC_BIN}/pandoc*") - install(FILES ${PANDOC_FILES} - PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE - DESTINATION ${RSTUDIO_INSTALL_BIN}/pandoc) + #set(PANDOC_BIN "${RSTUDIO_DEPENDENCIES_DIR}/common/pandoc/${PANDOC_VERSION}") + #file(GLOB PANDOC_FILES "${PANDOC_BIN}/pandoc*") + #install(FILES ${PANDOC_FILES} + # PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE + # DESTINATION ${RSTUDIO_INSTALL_BIN}/pandoc) # install embedded packages foreach(PKG ${RSTUDIO_EMBEDDED_PACKAGES}) @@ -558,18 +561,18 @@ if (NOT RSTUDIO_SESSION_WIN32) DESTINATION ${RSTUDIO_INSTALL_SUPPORTING}/resources) # install libclang - if(WIN32) - file(GLOB LIBCLANG_32_FILES "${LIBCLANG_DIR}/x86/*") - install(PROGRAMS ${LIBCLANG_32_FILES} - DESTINATION ${RSTUDIO_INSTALL_BIN}/rsclang/x86) - file(GLOB LIBCLANG_64_FILES "${LIBCLANG_DIR}/x86_64/*") - install(PROGRAMS ${LIBCLANG_64_FILES} - DESTINATION ${RSTUDIO_INSTALL_BIN}/rsclang/x86_64) - - # install libclang builtin-headers - install(DIRECTORY "${RSTUDIO_DEPENDENCIES_DIR}/common/libclang/builtin-headers" - DESTINATION "${RSTUDIO_INSTALL_SUPPORTING}/resources/libclang") - endif() +# if(WIN32) +# file(GLOB LIBCLANG_32_FILES "${LIBCLANG_DIR}/x86/*") +# install(PROGRAMS ${LIBCLANG_32_FILES} +# DESTINATION ${RSTUDIO_INSTALL_BIN}/rsclang/x86) +# file(GLOB LIBCLANG_64_FILES "${LIBCLANG_DIR}/x86_64/*") +# install(PROGRAMS ${LIBCLANG_64_FILES} +# DESTINATION ${RSTUDIO_INSTALL_BIN}/rsclang/x86_64) +# +# # install libclang builtin-headers +# install(DIRECTORY "${RSTUDIO_DEPENDENCIES_DIR}/common/libclang/builtin-headers" +# DESTINATION "${RSTUDIO_INSTALL_SUPPORTING}/resources/libclang") +# endif() # install winpty on windows if(WIN32)