Fix Segmentation fault on Linux amd64

The version defines which were passed to version.c were incorrectly
constructed in the CMakeLists.txt file causing a seg fault when
invoking edge -h
This commit is contained in:
Dushara Jayasinghe 2017-08-29 09:45:19 +10:00
parent 21055550f3
commit 368cee035c

View File

@ -10,7 +10,7 @@ if(NOT DEFINED N2N_OPTION_AES)
set(N2N_OPTION_AES ON)
endif(NOT DEFINED N2N_OPTION_AES)
add_definitions(-DN2N_VERSION='\"${N2N_VERSION}\"' -DN2N_OSNAME='\"${N2N_OSNAME}\"')
add_definitions(-DN2N_VERSION="${N2N_VERSION}" -DN2N_OSNAME="${N2N_OSNAME}")
if(N2N_OPTION_AES)
add_definitions(-DN2N_HAVE_AES)