Remove conditions around CMAKE_REQUIRED_LIBRARIES
authorAdeel <adeelbm@outlook.com>
Mon, 11 Mar 2019 09:38:32 +0000 (02:38 -0700)
committerAdeel <adeelbm@outlook.com>
Mon, 11 Mar 2019 09:39:35 +0000 (02:39 -0700)
src/pal/src/configure.cmake

index 1422cd0..a4d550e 100644 (file)
@@ -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 <lttng/tracepoint.h>
@@ -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)