File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,20 @@ else()
251
251
endif (WIN32 OR CYGWIN )
252
252
253
253
# requirements
254
+
255
+ include (CheckSymbolExists )
256
+ # Some platforms provide their own strlcpy & strlcat. (BSD, MacOSX)
257
+ # Others don't so we provide our own. (Most, but not all Linux)
258
+ # Define the preprocessor macro so libgps does not supply its own version.
259
+ check_symbol_exists (strlcpy string .h HAVE_STRLCPY )
260
+ if (HAVE_STRLCPY )
261
+ add_compile_options (-DHAVE_STRLCPY )
262
+ endif ()
263
+ check_symbol_exists (strlcat string .h HAVE_STRLCAT )
264
+ if (HAVE_STRLCAT )
265
+ add_compile_options (-DHAVE_STRLCAT )
266
+ endif ()
267
+
254
268
set (THREADS_PREFER_PTHREAD_FLAG ON )
255
269
find_package (Threads REQUIRED )
256
270
Original file line number Diff line number Diff line change 1
- include (CheckSymbolExists )
2
- # Some platforms provide their own strlcpy & strlcat. (BSD, MacOSX)
3
- # Others don't so we provide our own. (Most, but not all Linux)
4
- # Define the preprocessor macro so libgps does not supply its own version.
5
- check_symbol_exists (strlcpy string .h HAVE_STRLCPY )
6
- if (HAVE_STRLCPY )
7
- add_compile_options (-DHAVE_STRLCPY )
8
- endif ()
9
- check_symbol_exists (strlcat string .h HAVE_STRLCAT )
10
- if (HAVE_STRLCAT )
11
- add_compile_options (-DHAVE_STRLCAT )
12
- endif ()
13
1
14
2
# global includes
15
3
# not ideal but not so slow
You can’t perform that action at this time.
0 commit comments