Skip to content

Commit

Permalink
Fix yaml-cpp target to avoid cmake warnings (#2564)
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin authored Jan 8, 2025
1 parent b488581 commit c6e46c8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/solver/modelParser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ target_include_directories(modelParser
# Link dependencies (if any)
target_link_libraries(modelParser
PRIVATE
yaml-cpp
yaml-cpp::yaml-cpp
)

install(DIRECTORY include/antares
Expand Down
2 changes: 1 addition & 1 deletion src/solver/modeler/parameters/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ add_library(Antares::modelerParameters ALIAS modelerParameters)

target_link_libraries(modelerParameters
PRIVATE
yaml-cpp
yaml-cpp::yaml-cpp
Antares::io)

target_include_directories(modelerParameters
Expand Down
2 changes: 1 addition & 1 deletion src/solver/systemParser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ target_link_libraries(systemParser
PUBLIC
Antares::antares-study-system-model
PRIVATE
yaml-cpp
yaml-cpp::yaml-cpp
)

install(DIRECTORY include/antares
Expand Down
2 changes: 1 addition & 1 deletion src/tests/src/libs/antares/yaml-parser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ include(${CMAKE_SOURCE_DIR}/tests/macros.cmake)

add_boost_test(yaml-parser-test
SRC test_yaml_parser.cpp
LIBS yaml-cpp)
LIBS yaml-cpp::yaml-cpp)

0 comments on commit c6e46c8

Please sign in to comment.