diff --git a/cmake/Macros.cmake b/cmake/Macros.cmake index 571a22e2..dd193f28 100644 --- a/cmake/Macros.cmake +++ b/cmake/Macros.cmake @@ -429,9 +429,6 @@ function(sfml_export_targets) endif() set(targets_config_filename "SFML${config_name}Targets.cmake") - export(EXPORT SFMLConfigExport - FILE "${CMAKE_CURRENT_BINARY_DIR}/${targets_config_filename}") - if(SFML_BUILD_FRAMEWORKS) set(config_package_location "SFML.framework/Resources/CMake") else() @@ -442,7 +439,6 @@ function(sfml_export_targets) configure_package_config_file("${CURRENT_DIR}/SFMLConfigDependencies.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/SFMLConfigDependencies.cmake" INSTALL_DESTINATION "${config_package_location}") - install(EXPORT SFMLConfigExport FILE ${targets_config_filename} DESTINATION ${config_package_location})