diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b410994df..01745380a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,6 +1,6 @@ ## -*- mode: CMake -*- ## -## Copyright (c) 2017 The University of Utah +## Copyright (c) 2017, 2019 The University of Utah ## All rights reserved. ## ## This file is part of `csmith', a random generator of C programs. @@ -208,6 +208,13 @@ add_executable(csmith ${csmith_SOURCES} ) +# Use C++14. +set_target_properties(csmith PROPERTIES + CXX_STANDARD 14 + CXX_EXTENSIONS NO + ) +# CXX_STANDARD_REQUIRED YES + if(BSD_LIBRARY) target_link_libraries(csmith "${BSD_LIBRARY}") endif()