Skip to content

Commit

Permalink
resolve yaml-cpp relative to root
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Jan 20, 2021
1 parent 43a82e0 commit cffa3dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeGlobals.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ if(RSTUDIO_CMAKE_GLOBALS_INCLUDED)
endif()
set(RSTUDIO_CMAKE_GLOBALS_INCLUDED YES)

# root directory
set(RSTUDIO_ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}")

# version info
if ("$ENV{RSTUDIO_VERSION_MAJOR}" STREQUAL "")
set(CPACK_PACKAGE_VERSION_MAJOR "99")
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ if(WIN32)

else()

set(YAML_CPP_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/../../dependencies/common")
set(YAML_CPP_ROOT "${RSTUDIO_ROOT_DIR}/dependencies/common")
set(YAML_CPP_INCLUDE_DIR "${YAML_CPP_ROOT}/yaml-cpp/0.6.3/include")
set(YAML_CPP_LIBRARIES "${YAML_CPP_ROOT}/yaml-cpp/0.6.3/build/libyaml-cpp.a")

Expand Down

0 comments on commit cffa3dd

Please sign in to comment.