commit | 665489b4d2591812471dcf0ffbed0677ed17ca78 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Thu Apr 18 15:07:58 2019 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Thu Apr 18 15:07:58 2019 +0200 |
tree | 684823772367a909e375dc6da5f4d1ac6453b700 | |
parent | fc81ea8059c1ba39330088beac59e5464f5d5396 [diff] [blame] |
build BUGFIX vdprintf() detection
diff --git a/CMakeLists.txt b/CMakeLists.txt index 21d9aec..c09919b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -209,10 +209,8 @@ src/log.h src/set.h) +list(APPEND CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE) check_symbol_exists(vdprintf stdio.h HAVE_VDPRINTF) -if(HAVE_VDPRINTF) - add_definitions(-DHAVE_VDPRINTF) -endif(HAVE_VDPRINTF) # create static libyang library if(ENABLE_STATIC)