diff --git a/src/libs/antares/io/CMakeLists.txt b/src/libs/antares/io/CMakeLists.txt index 9e3211e14b..f2f1eae17d 100644 --- a/src/libs/antares/io/CMakeLists.txt +++ b/src/libs/antares/io/CMakeLists.txt @@ -12,6 +12,8 @@ source_group("io" FILES ${SRC_IO}) add_library(io ${SRC_IO} ) +add_library(Antares::io ALIAS io) + target_link_libraries(io PRIVATE @@ -26,4 +28,4 @@ target_include_directories(io install(DIRECTORY include/antares DESTINATION "include" -) \ No newline at end of file +) diff --git a/src/solver/modeler/loadFiles/CMakeLists.txt b/src/solver/modeler/loadFiles/CMakeLists.txt index 54ebf5b3e3..d7a1c0118c 100644 --- a/src/solver/modeler/loadFiles/CMakeLists.txt +++ b/src/solver/modeler/loadFiles/CMakeLists.txt @@ -20,7 +20,7 @@ target_link_libraries(loadModelerFiles PUBLIC Antares::antares-study-system-model PRIVATE - io + Antares::io Antares::systemParser Antares::modelParser Antares::modelConverter diff --git a/src/solver/modeler/loadFiles/readLibraries.cpp b/src/solver/modeler/loadFiles/readLibraries.cpp index 33fefacc23..ebccd6b90c 100644 --- a/src/solver/modeler/loadFiles/readLibraries.cpp +++ b/src/solver/modeler/loadFiles/readLibraries.cpp @@ -48,7 +48,8 @@ std::vector loadLibraries(const fs::path& studyPath { if (entry.path().extension() != ".yml") { - logs.info() << "File ignored because of wrong extension: " << entry.path(); + logs.info() << entry.path() + << " ignored, only files having the `.yml` extension are loaded"; continue; }