1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

CMake function addlib can be called multiply for the same library

This commit is contained in:
Paul Licameli 2020-10-02 18:05:30 -04:00 committed by Leland Lucius
parent ec3d2424a5
commit 29a657bc77

View File

@ -443,6 +443,10 @@ function( addlib dir name symbol required check )
# Let the Audacity target know that this library will be used # Let the Audacity target know that this library will be used
set( USE_${symbol} ON CACHE INTERNAL "" FORCE ) set( USE_${symbol} ON CACHE INTERNAL "" FORCE )
if ( TARGET "${TARGET}" )
return()
endif()
message( STATUS "========== Configuring ${name} ==========" ) message( STATUS "========== Configuring ${name} ==========" )
# Check for the system package(s) if the user prefers it # Check for the system package(s) if the user prefers it