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:
parent
0e7797935f
commit
ad77faca0d
@ -150,7 +150,7 @@ set( PACKAGE_VERSION ${VERSION} )
|
||||
try_compile( HAVE_FLEXIBLE_ARRAY
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/famcheck.c
|
||||
LINK_OPTIONS ${CMAKE_REQUIRED_LIBRARIES}
|
||||
LINK_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES}
|
||||
OUTPUT_VARIABLE c_out
|
||||
)
|
||||
|
||||
@ -158,7 +158,7 @@ try_compile( HAVE_FLEXIBLE_ARRAY
|
||||
try_run( r_rc c_rc
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/clipcheck.c
|
||||
LINK_OPTIONS ${CMAKE_REQUIRED_LIBRARIES}
|
||||
LINK_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES}
|
||||
RUN_OUTPUT_VARIABLE r_out
|
||||
COMPILE_OUTPUT_VARIABLE c_out
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user