~trn/duma

5d1412bdf511114a37e3f2e672b5681df20611fa — Jeffrey H. Johnson 11 days ago 97bbfb2
Ensure CMake builds use C++11 compilation; update documentation.

* Set CMAKE_CXX_STANDARD to 11 to ensure proper compilation.
* Set CMAKE_CXX_STANDARD_REQUIRED on.
4 files changed, 12 insertions(+), 13 deletions(-)

M .gitignore
M CMakeLists.txt
M README.md
M confdir/CMakeLists.txt
M .gitignore => .gitignore +2 -11
@@ 1,15 1,10 @@

# duma specific

duma_config.h
verinfo.h
build
build_gcc*


# Created by https://www.toptal.com/developers/gitignore/api/vim,visualstudiocode,linux,macos,cvs,git,c,c++
# Edit at https://www.toptal.com/developers/gitignore?templates=vim,visualstudiocode,linux,macos,cvs,git,c,c++

### C ###
# Prerequisites
*.d


@@ 149,7 144,6 @@ Temporary Items
.apdisk

### Vim ###
# Swap
[._]*.s[a-v][a-z]
!*.svg  # comment out if you don't need vector files
[._]*.sw[a-p]


@@ 163,8 157,10 @@ Sessionx.vim

# Temporary
.netrwhist

# Auto-generated tag files
tags

# Persistent undo
[._]*.un~



@@ 175,13 171,8 @@ tags
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

### VisualStudioCode Patch ###
# Ignore all local history of files
.history

# End of https://www.toptal.com/developers/gitignore/api/vim,visualstudiocode,linux,macos,cvs,git,c,c++

# The following have been imported from .cvsignore
*.ncb
*.opt

M CMakeLists.txt => CMakeLists.txt +4 -1
@@ 1,8 1,11 @@
cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 3.1)
project(DUMA)

# see INSTALL on how to build DUMA

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED on)

option( DUMA_WITH_GLOBAL_MALLOC_FREE "export malloc/free" ON)  # NOT DUMA_NO_GLOBAL_MALLOC_FREE
option( DUMA_WITH_EXPLICIT_INIT      "duma_init() is to be called from user" OFF)  # DUMA_EXPLICIT_INIT
option( DUMA_WITH_THREAD_SAFETY      "build thread safe duma library" ON)  # NOT DUMA_NO_THREAD_SAFETY

M README.md => README.md +5 -0
@@ 167,6 167,11 @@ Some **_non_**-**_GNU_** **Make** systems **_may_** work, but are

##### CMake

**CMake** is a portable suite of tools to automate the configuration,
building, testing, packaging, and installation of software.

**DUMA** can be built using **CMake** 3.1 (*December 2014*) or later.

- Inside the unpacked **DUMA** source directory, create and change to a
  new `build` directory
  - `mkdir build && cd build`

M confdir/CMakeLists.txt => confdir/CMakeLists.txt +1 -1
@@ 1,4 1,4 @@
cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 3.1)
project(DUMA_CONF)

add_executable(createconf ../createconf.c)