added FindSndFile cmake module to replace inline checks.
[blender.git] / build_files / cmake / macros.cmake
index 9b19ed331622307e594ce3146d3540eee064241e..b0b777f936a7cceca54d66a6dc038e3411f3dc8c 100644 (file)
@@ -200,7 +200,7 @@ macro(setup_liblinks
                target_link_libraries(${target} ${JACK_LIB})
        endif()
        if(WITH_CODEC_SNDFILE)
-               target_link_libraries(${target} ${SNDFILE_LIB})
+               target_link_libraries(${target} ${SNDFILE_LIBRARIES})
        endif()
        if(WITH_SAMPLERATE)
                target_link_libraries(${target} ${LIBSAMPLERATE_LIB})