Skip to content

Commit

Permalink
Add support for musl-fts library
Browse files Browse the repository at this point in the history
  • Loading branch information
danyspin97 authored and madame-rachelle committed Jun 7, 2019
1 parent d955c29 commit d34b355
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion CMakeLists.txt
Expand Up @@ -239,7 +239,20 @@ else()
else()
set( ALL_C_FLAGS "-ffp-contract=off" )
endif()


if ( UNIX )
check_symbol_exists( "fts_set" "fts.h" HAVE_FTS )
if ( NOT HAVE_FTS )
include ( FindPkgConfig )
pkg_check_modules( MUSL_FTS musl-fts )
if ( MUSL_FTS_FOUND )
set ( ALL_C_FLAGS "${ALL_C_FLAGS} ${MUSL_FTS_LDFLAGS}" )
else ( MUSL_FTS_FOUND )
message (ERROR "fts_* functions not found in the system" )
endif ( MUSL_FTS_FOUND )
endif ( NOT HAVE_FTS )
endif ( UNIX )

set( REL_C_FLAGS "" )
set( DEB_C_FLAGS "" )

Expand Down

0 comments on commit d34b355

Please sign in to comment.