Skip to content

Commit 164651b

Browse files
committed
faust: use default FAUSTFLOAT configuration if using faust from distro
1 parent dc29b2f commit 164651b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/plugins/score-plugin-faust/CMakeLists.txt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,13 @@ add_library(${PROJECT_NAME}
4848
)
4949

5050
score_generate_command_list_file(${PROJECT_NAME} "${HDRS}")
51-
target_compile_definitions(${PROJECT_NAME}
52-
PUBLIC
53-
FAUSTFLOAT=double
54-
)
51+
52+
if(NOT "${FAUST_LIBRARIES}" MATCHES "/usr/l.*")
53+
target_compile_definitions(${PROJECT_NAME}
54+
PUBLIC
55+
FAUSTFLOAT=double
56+
)
57+
endif()
5558

5659
target_link_libraries(${PROJECT_NAME} PUBLIC
5760
score_plugin_media
@@ -68,7 +71,7 @@ ExternalProject_Add(
6871
faustlibs
6972
PREFIX ""
7073
GIT_REPOSITORY https://github.com/grame-cncm/faustlibraries
71-
GIT_TAG 730eff6dc336973553829235e0b31b24c47a2f69
74+
GIT_TAG 5ee53574d0b910695b9ff3c534b9aa60f7a26d3d
7275
CONFIGURE_COMMAND ""
7376
BUILD_COMMAND ""
7477
INSTALL_COMMAND ""

0 commit comments

Comments
 (0)