Remove unnecessary export() call

This commit is contained in:
Chris Thrasher 2023-07-15 19:16:31 -06:00
parent bc8a84138f
commit b298b728f5

View File

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