diff --git a/cmake/SFMLConfig.cmake.in b/cmake/SFMLConfig.cmake.in index 855f8a273..5d5b2f4db 100644 --- a/cmake/SFMLConfig.cmake.in +++ b/cmake/SFMLConfig.cmake.in @@ -169,6 +169,11 @@ foreach(component ${FIND_SFML_COMPONENTS_SORTED}) endif() else() set(FIND_SFML_ERROR "Requested SFML configuration (${config_name}) was not found") + if(config_name STREQUAL "Shared") + string(APPEND FIND_SFML_ERROR "\nSet SFML_STATIC_LIBRARIES to ON for static libraries") + elseif(config_name STREQUAL "Static") + string(APPEND FIND_SFML_ERROR "\nSet SFML_STATIC_LIBRARIES to OFF for shared libraries") + endif() set(SFML_${UPPER_COMPONENT}_FOUND OFF) set(SFML_FOUND OFF) endif()