Skip to content

Build - Fix C++ standard options and NOMINMAX scope#907

Merged
dpasukhi merged 1 commit intoOpen-Cascade-SAS:IRfrom
dpasukhi:cmake_cpp_standard_nominmax_fix
Dec 12, 2025
Merged

Build - Fix C++ standard options and NOMINMAX scope#907
dpasukhi merged 1 commit intoOpen-Cascade-SAS:IRfrom
dpasukhi:cmake_cpp_standard_nominmax_fix

Conversation

@dpasukhi
Copy link
Copy Markdown
Member

  • Fix C++ standard dropdown: split "C++23 C++26" into separate options
  • Move NOMINMAX define from MSVC-only to all WIN32 compilers

- Fix C++ standard dropdown: split "C++23 C++26" into separate options
- Move NOMINMAX define from MSVC-only to all WIN32 compilers
@dpasukhi dpasukhi added this to the Release 8.0 milestone Dec 12, 2025
@dpasukhi dpasukhi requested a review from Copilot December 12, 2025 20:28
@dpasukhi dpasukhi self-assigned this Dec 12, 2025
@dpasukhi dpasukhi added the 1. Build Building process of OCCT or samples label Dec 12, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes two build configuration issues in the CMake setup: separating C++23 and C++26 into distinct dropdown options, and ensuring the NOMINMAX preprocessor definition applies to all Windows compilers rather than only MSVC.

Key changes:

  • Split the combined "C++23 C++26" dropdown option into separate "C++23" and "C++26" options
  • Move NOMINMAX definition from MSVC-specific section to a general WIN32 block to cover MinGW and other Windows compilers

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
CMakeLists.txt Separates the C++ standard dropdown options for C++23 and C++26
adm/cmake/occt_defs_flags.cmake Removes NOMINMAX from MSVC-specific block and adds it to a new WIN32-specific block for broader Windows compiler support

@dpasukhi dpasukhi merged commit 787a80f into Open-Cascade-SAS:IR Dec 12, 2025
24 checks passed
@dpasukhi dpasukhi deleted the cmake_cpp_standard_nominmax_fix branch December 12, 2025 21:56
@github-project-automation github-project-automation bot moved this from Todo to Done in Maintenance Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1. Build Building process of OCCT or samples

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants