Enabled C++11 in CMake

This commit is contained in:
MaxXSoft 2020-12-10 12:46:56 +08:00 committed by Serge Lamikhov-Center
parent f6474ee571
commit c05cd56dc8

View File

@ -26,6 +26,9 @@ configure_file(${version_header} ${CMAKE_CURRENT_BINARY_DIR}/elfio_version.hpp.c
project(elfio VERSION ${version} LANGUAGES C CXX)
# Enable C++11
set(CMAKE_CXX_STANDARD 11)
include(GNUInstallDirs)
# Create a header only CMake target for elfio
@ -104,4 +107,4 @@ if (IS_TOP_PROJECT)
elfio
EXPORT
${PROJECT_NAME}_Targets)
endif()
endif()