From 7c61189f277328b07cf529e807b36a76c3e7c86d Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Fri, 4 Feb 2011 22:03:19 +0000 Subject: [PATCH] Fixed library name of the "main" component in FindSFML.cmake git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1787 4e206d99-4929-0410-ac5d-dfc041789085 --- cmake/Modules/FindSFML.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/Modules/FindSFML.cmake b/cmake/Modules/FindSFML.cmake index 4b1e6e60e..378d7a1a3 100644 --- a/cmake/Modules/FindSFML.cmake +++ b/cmake/Modules/FindSFML.cmake @@ -75,6 +75,11 @@ foreach(FIND_SFML_COMPONENT ${SFML_FIND_COMPONENTS}) set(FIND_SFML_COMPONENT_VAR SFML_${FIND_SFML_COMPONENT_UPPER}_LIBRARY) set(FIND_SFML_COMPONENT_NAME sfml-${FIND_SFML_COMPONENT_LOWER}${FIND_SFML_LIB_SUFFIX}) + # no suffix for sfml-main, it is always a static library + if(FIND_SFML_COMPONENT_LOWER STREQUAL "main") + set(FIND_SFML_COMPONENT_NAME sfml-${FIND_SFML_COMPONENT_LOWER}) + endif() + # release library find_library(${FIND_SFML_COMPONENT_VAR} NAMES ${FIND_SFML_COMPONENT_NAME}