open-iscsi / target-isns

Target-isns is an iSNS client for the Linux LIO iSCSI target
GNU General Public License v2.0
16 stars 19 forks source link

v2: Fix compilation for CMake older than 3.1 #32

Closed printesoi closed 8 years ago

printesoi commented 8 years ago

The C_STANDARD target property was added in CMake 3.1. The compilation using older versions of CMake, like 2.8.12 on Ubuntu 14.04 fails because the -std=c99 C flag is not added. The fix is to add -std=c99 to CMAKE_C_FLAGS for older cmake versions.

Signed-off-by: Victor Dodon dodonvictor@gmail.com

cvubrugier commented 8 years ago

Thank you @printesoi :+1: