Skip to content

Use CMAKE_CXX_STANDARD to set C++14 standard  #448

Closed
@cwsmith

Description

@cwsmith

Replace the -std=c++14 here

set(FLAGS "${FLAGS} --std=c++14 -Wall -Wextra -Wpedantic -Werror -Wno-extra-semi -Werror=unused-parameter -Wno-error=deprecated-declarations")

with set(CMAKE_CXX_STANDARD 14).

Tagging with CGNS as that code requires C++14:

core/CMakeLists.txt

Lines 40 to 42 in 8959c59

if(ENABLE_CGNS) #takes precedence over SCOREC_ENABLE_CXX11
message(STATUS "enabling cxx14")
bob_cxx14_flags()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions