Skip to content

Commit

Permalink
Fix to correctly link SFML, the old approach doesn't work anymore.
Browse files Browse the repository at this point in the history
Fixes #30
  • Loading branch information
oprypin committed Jan 7, 2020
1 parent 9bc038f commit 36280e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions voidcsfml/CMakeLists.txt.in
Expand Up @@ -187,8 +187,7 @@ macro(voidcsfml_add_library module)

# link the target to its external dependencies (C++ SFML libraries)
foreach(depend ${module} ${voidcsfml_add_library_DEPENDS})
string(TOUPPER "${depend}" depend)
target_link_libraries(${target} ${SFML_${depend}_LIBRARY} ${SFML_${depend}_DEPENDENCIES})
target_link_libraries(${target} sfml-${depend})
endforeach()

# build dylibs
Expand Down

0 comments on commit 36280e3

Please sign in to comment.