Skip to content

Commit

Permalink
Improve handling of Boost dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Ortham committed Apr 26, 2024
1 parent a04320c commit 4c58325
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ add_dependencies(loot
libloadorder
loot-condition-interpreter)
target_link_libraries(loot PRIVATE
Boost::headers
${ESPLUGIN_LIBRARIES}
${LIBLOADORDER_LIBRARIES}
${LCI_LIBRARIES}
Expand All @@ -288,7 +289,6 @@ set(LIBLOOT_COMMON_SYSTEM_INCLUDE_DIRS
${LIBLOADORDER_INCLUDE_DIRS}
${ESPLUGIN_INCLUDE_DIRS}
${LCI_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${ICU_INCLUDE_DIRS})

target_include_directories(loot PRIVATE ${LIBLOOT_INCLUDE_DIRS})
Expand Down
4 changes: 2 additions & 2 deletions cmake/tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ add_dependencies(libloot_internals_tests
loot-condition-interpreter
yaml-cpp)
target_link_libraries(libloot_internals_tests PRIVATE
Boost::headers
${ESPLUGIN_LIBRARIES}
${LIBLOADORDER_LIBRARIES}
${LCI_LIBRARIES}
Expand All @@ -116,7 +117,7 @@ target_link_libraries(libloot_internals_tests PRIVATE
# Build API tests.
add_executable(libloot_tests ${LIBLOOT_INTERFACE_TESTS_ALL_SOURCES})
add_dependencies(libloot_tests loot)
target_link_libraries(libloot_tests PRIVATE loot GTest::gtest_main)
target_link_libraries(libloot_tests PRIVATE loot Boost::headers GTest::gtest_main)


##############################
Expand All @@ -131,7 +132,6 @@ set(LIBLOOT_COMMON_SYSTEM_INCLUDE_DIRS
${LIBLOADORDER_INCLUDE_DIRS}
${ESPLUGIN_INCLUDE_DIRS}
${LCI_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${ICU_INCLUDE_DIRS})

target_include_directories(libloot_internals_tests PRIVATE
Expand Down

0 comments on commit 4c58325

Please sign in to comment.