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

Use libraries not options

The ensures that any extra libraries (like "libm") get passed
at the end of the compile command.  Mattered on Ubuntu, but
not on Fedora.
This commit is contained in:
Leland Lucius 2020-02-03 16:00:47 -06:00
parent 0e7797935f
commit ad77faca0d

View File

@ -150,7 +150,7 @@ set( PACKAGE_VERSION ${VERSION} )
try_compile( HAVE_FLEXIBLE_ARRAY try_compile( HAVE_FLEXIBLE_ARRAY
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/famcheck.c ${CMAKE_CURRENT_SOURCE_DIR}/famcheck.c
LINK_OPTIONS ${CMAKE_REQUIRED_LIBRARIES} LINK_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES}
OUTPUT_VARIABLE c_out OUTPUT_VARIABLE c_out
) )
@ -158,7 +158,7 @@ try_compile( HAVE_FLEXIBLE_ARRAY
try_run( r_rc c_rc try_run( r_rc c_rc
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/clipcheck.c ${CMAKE_CURRENT_SOURCE_DIR}/clipcheck.c
LINK_OPTIONS ${CMAKE_REQUIRED_LIBRARIES} LINK_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES}
RUN_OUTPUT_VARIABLE r_out RUN_OUTPUT_VARIABLE r_out
COMPILE_OUTPUT_VARIABLE c_out COMPILE_OUTPUT_VARIABLE c_out
) )