mirror of
https://github.com/kakwa/uts-server
synced 2025-07-04 04:27:05 +02:00
adding code in cmake for static compilation
This commit is contained in:
parent
79be3ce7a5
commit
01ec7b5a74
4 changed files with 26 additions and 3 deletions
|
@ -34,7 +34,11 @@ if (ARGP_IN_LIBC)
|
|||
elseif (NOT ARGP_IN_LIBC)
|
||||
unset(ARGP_IN_LIBC CACHE)
|
||||
|
||||
find_library(ARGP_LIB "argp")
|
||||
if(ARGP_USE_STATIC_LIBS)
|
||||
find_library(ARGP_LIB "libargp.a")
|
||||
else(ARGP_USE_STATIC_LIBS)
|
||||
find_library(ARGP_LIB "argp")
|
||||
endif(ARGP_USE_STATIC_LIBS)
|
||||
find_path(ARGP_INCLUDE_DIR argp.h PATH_SUFFIXES include)
|
||||
mark_as_advanced(ARGP_LIB)
|
||||
if (ARGP_LIB)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue