diff --git a/CMakeLists.txt b/CMakeLists.txt index 73508723335..03f7bfdfb15 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -175,7 +175,6 @@ if(SOFA_ENABLE_LEGACY_HEADERS) message("Using legacy headers is enabled.") endif() sofa_add_subdirectory(library Sofa/framework/Compat Sofa.Compat ON WHEN_TO_SHOW "SOFA_ENABLE_LEGACY_HEADERS" VALUE_IF_HIDDEN OFF) -sofa_add_subdirectory(library Sofa/Component/Compat Sofa.Component.Compat ON WHEN_TO_SHOW "SOFA_ENABLE_LEGACY_HEADERS" VALUE_IF_HIDDEN OFF) ### SOFA (framework and components) add_subdirectory(Sofa) diff --git a/Sofa/framework/Core/CMakeLists.txt b/Sofa/framework/Core/CMakeLists.txt index 154030c8206..82f872c5cfe 100644 --- a/Sofa/framework/Core/CMakeLists.txt +++ b/Sofa/framework/Core/CMakeLists.txt @@ -347,12 +347,6 @@ if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") target_compile_options(${PROJECT_NAME} PRIVATE -Wno-attributes) endif() -# SOFA-NG: make everybody be able to use Sofa.Component.Compat -sofa_find_package(Sofa.Component.Compat QUIET) -if(Sofa.Component.Compat_FOUND) - target_link_libraries(${PROJECT_NAME} PUBLIC Sofa.Component.Compat) -endif() - set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER Sofa.Framework) # IDE folder sofa_create_package_with_targets( diff --git a/Sofa/framework/Core/Sofa.CoreConfig.cmake.in b/Sofa/framework/Core/Sofa.CoreConfig.cmake.in index 2a4c47947d3..b566537aae3 100644 --- a/Sofa/framework/Core/Sofa.CoreConfig.cmake.in +++ b/Sofa/framework/Core/Sofa.CoreConfig.cmake.in @@ -9,10 +9,6 @@ find_package(Sofa.Topology QUIET REQUIRED) find_package(Sofa.Helper QUIET REQUIRED) find_package(Sofa.DefaultType QUIET REQUIRED) -if(SOFA_CORE_HAVE_SOFA_COMPONENT_COMPAT) - find_package(Sofa.Component.Compat QUIET REQUIRED) -endif() - if(NOT TARGET @PROJECT_NAME@) include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake") endif()