From: Adeel Date: Mon, 11 Mar 2019 09:38:32 +0000 (-0700) Subject: Remove conditions around CMAKE_REQUIRED_LIBRARIES X-Git-Tag: accepted/tizen/unified/20190813.215958~58^2~15^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=107b9424d7dd56c1902b09bb1c67533215190ea8;p=platform%2Fupstream%2Fcoreclr.git Remove conditions around CMAKE_REQUIRED_LIBRARIES --- 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)