Changeset: 7fa27fd07302 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7fa27fd07302 Modified Files: cmake/monetdb-defines.cmake Branch: default Log Message:
Specify path to use for searching. diffs (15 lines): diff --git a/cmake/monetdb-defines.cmake b/cmake/monetdb-defines.cmake --- a/cmake/monetdb-defines.cmake +++ b/cmake/monetdb-defines.cmake @@ -76,7 +76,10 @@ function(monetdb_configure_defines) check_symbol_exists("ftime" "sys/timeb.h" HAVE_FTIME) check_function_exists("getexecname" HAVE_GETEXECNAME) check_function_exists("getlogin" HAVE_GETLOGIN) - check_symbol_exists("getopt_long" "getopt.h" HAVE_GETOPT_LONG) + cmake_push_check_state() + set(CMAKE_REQUIRED_INCLUDES "${HAVE_GETOPT_H}") + check_symbol_exists("getopt_long" "getopt.h" HAVE_GETOPT_LONG) + cmake_pop_check_state() check_function_exists("getrlimit" HAVE_GETRLIMIT) check_function_exists("gettimeofday" HAVE_GETTIMEOFDAY) check_function_exists("getuid" HAVE_GETUID) _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list