if(SFML_OS_WINDOWS)
set(SFML_STATIC_LIBRARIES ON CACHE BOOL "Build CSFML linked to static SFML")
endif()
Sorry, you lost me. What's broken?
if(SFML_OS_WINDOWS)
set(SFML_STATIC_LIBRARIES TRUE)
add_definitions(-DSFML_STATIC)
endif()
if(SFML_OS_WINDOWS)
set(SFML_STATIC_LIBRARIES ON CACHE BOOL "Build CSFML linked to static SFML")
endif()
Don't forget to add the SFML_STATIC definition though, or does the find script add that?