Skip to content

Commit

Permalink
fix: include for yaml-cpp
Browse files Browse the repository at this point in the history
There is a typo in YAML_CPP_INCLUDE_DIR variable.
The one defined by find_package() is singular.

Fixed to use the same name in all branches.

Signed-off-by: Arie Gurfinkel <[email protected]>
  • Loading branch information
agurfinkel authored and elazarg committed Oct 12, 2024
1 parent 37e34db commit a476ecd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
-DYAML_CPP_BUILD_TOOLS=OFF
)
set(YAML_CPP_LIBRARIES ${EXTERNAL_INSTALL_LOCATION}/lib/yaml-cpp$<$<CONFIG:DEBUG>:d>.lib)
set(YAML_CPP_INCLUDE_DIRS ${EXTERNAL_INSTALL_LOCATION}/include/)
set(YAML_CPP_INCLUDE_DIR ${EXTERNAL_INSTALL_LOCATION}/include/)
endif ()

include_directories(./external)
Expand All @@ -77,9 +77,12 @@ include_directories(./src)
include_directories(./external/libbtf)
include_directories(${GSL_INCLUDE_DIRS})
include_directories(${Boost_INCLUDE_DIRS})
include_directories(${YAML_CPP_INCLUDE_DIRS})
include_directories(${YAML_CPP_INCLUDE_DIR})

link_directories(${YAML_CPP_LIBRARY_DIR})
link_directories(${Boost_LIBRARY_DIRS})


file(GLOB LIB_SRC
"./src/*.cpp"
"./src/crab/*.cpp"
Expand Down

0 comments on commit a476ecd

Please sign in to comment.