From 107b9424d7dd56c1902b09bb1c67533215190ea8 Mon Sep 17 00:00:00 2001 From: Adeel Date: Mon, 11 Mar 2019 02:38:32 -0700 Subject: [PATCH] Remove conditions around CMAKE_REQUIRED_LIBRARIES --- src/pal/src/configure.cmake | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/pal/src/configure.cmake b/src/pal/src/configure.cmake index 1422cd0..a4d550e 100644 --- a/src/pal/src/configure.cmake +++ b/src/pal/src/configure.cmake @@ -42,9 +42,7 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin) check_include_files("libintl.h" HAVE_LIBINTL_H) endif() -if(NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD AND NOT CMAKE_SYSTEM_NAME STREQUAL NetBSD) - set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_DL_LIBS}) -endif() +set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_DL_LIBS}) check_cxx_source_compiles(" #include @@ -52,9 +50,7 @@ int main(int argc, char **argv) { return 0; }" HAVE_LTTNG_TRACEPOINT_H) -if(NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD AND NOT CMAKE_SYSTEM_NAME STREQUAL NetBSD) - set(CMAKE_REQUIRED_LIBRARIES) -endif() +set(CMAKE_REQUIRED_LIBRARIES) check_include_files(sys/sysctl.h HAVE_SYS_SYSCTL_H) check_include_files(gnu/lib-names.h HAVE_GNU_LIBNAMES_H) -- 2.7.4