Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ option(NINJA_FORCE_PSELECT "Use pselect() even on platforms that provide ppoll()

project(ninja CXX)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// line 11: assigned standard to 14
// line 12 : defined need

# --- optional link-time optimization
check_ipo_supported(RESULT lto_supported OUTPUT error)

Expand Down Expand Up @@ -191,9 +195,6 @@ else()
endif()
endif()

target_compile_features(libninja PUBLIC cxx_std_14)
target_compile_features(libninja-re2c PUBLIC cxx_std_14)

#Fixes GetActiveProcessorCount on MinGW
if(MINGW)
target_compile_definitions(libninja PRIVATE _WIN32_WINNT=0x0601 __USE_MINGW_ANSI_STDIO=1)
Expand Down
Loading