Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
OPTION(ENABLE_THREADS "Enable threads" OFF)

IF(${ENABLE_THREADS})
set(UNQLITE_ENABLE_THREADS ON)
ADD_DEFINITIONS("-DUNQLITE_ENABLE_THREADS")
ENDIF(${ENABLE_THREADS})

configure_file(./src/config.h.in ./src/config.h)

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_LIST_DIR}/src)

SET(HEADERS_UNQLITE
Expand Down
6 changes: 6 additions & 0 deletions src/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef _UNQLITE_CONFIG_H_
#define _UNQLITE_CONFIG_H_

/* #undef UNQLITE_ENABLE_THREADS */

#endif
6 changes: 6 additions & 0 deletions src/config.h.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef _UNQLITE_CONFIG_H_
#define _UNQLITE_CONFIG_H_

#cmakedefine UNQLITE_ENABLE_THREADS

#endif
3 changes: 3 additions & 0 deletions src/unqlite.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/* This file was automatically generated. Do not edit (Except for compile time directives)! */
#ifndef _UNQLITE_H_
#define _UNQLITE_H_

#include "./config.h"

/*
* Symisc UnQLite: An Embeddable NoSQL (Post Modern) Database Engine.
* Copyright (C) 2012-2013, Symisc Systems http://unqlite.org/
Expand Down