mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
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
This commit is contained in:
parent
637e4fa365
commit
7c61189f27
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user