Skip to content

Commit c41170d

Browse files
committed
have cmake detect strsep
closes: #10
1 parent 8e81d49 commit c41170d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ if(GIT)
2121
endif()
2222
endif()
2323

24+
include(CheckSymbolExists)
25+
check_symbol_exists(strsep "string.h" HAVE_STRSEP)
26+
if(HAVE_STRSEP)
27+
add_definitions(-DHAVE_STRSEP)
28+
endif()
29+
2430
add_definitions(
2531
-DPACKAGE_VERSION="${PACKAGE_VERSION}"
2632
-DBUILD_INFO="${BUILD_INFO}"

0 commit comments

Comments
 (0)