Build: Allow inheritance of the C++ standard

This fixes symbol name incompatibilities when linking with icsneo::optional
between C++ standards.
pull/35/head
Paul Hollinsky 2021-04-29 18:08:01 -04:00
parent a63d701839
commit f629125e67
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,9 @@ option(LIBICSNEO_BUILD_ICSNEOC_STATIC "Build static C library" ON)
option(LIBICSNEO_BUILD_ICSNEOLEGACY "Build icsnVC40 compatibility library" ON)
set(LIBICSNEO_NPCAP_INCLUDE_DIR "" CACHE STRING "Npcap include directory; set to build with Npcap")
set(CMAKE_CXX_STANDARD 11)
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 11)
endif()
include(GNUInstallDirs)