fix include dirs

This commit is contained in:
simon987 2020-04-28 11:11:54 -04:00
parent eb49a94ebc
commit 5fc9c8548d
2 changed files with 6 additions and 4 deletions

View File

@ -1,10 +1,12 @@
cmake_minimum_required(VERSION 3.14)
include_directories("/usr/include/postgresql/server/")
cmake_minimum_required(VERSION 3.13)
project(hamming C)
set(CMAKE_C_STANDARD 99)
find_package(PostgreSQL REQUIRED)
include_directories(${PostgreSQL_INCLUDE_DIRS})
add_library(hamming SHARED hamming.c)
target_compile_options(
hamming

View File

@ -1,5 +1,5 @@
#include "postgresql/server/postgres.h"
#include "postgresql/server/fmgr.h"
#include <postgres.h>
#include <fmgr.h>
__always_inline
static int _distance_8(const char *h1, const char *h2) {