Skip to content

Instantly share code, notes, and snippets.

@scivision
scivision / CMakeLists.txt
Last active November 7, 2025 22:06
Xcode 16 Homebrew GCC 14.2 breaks with CMake
cmake_minimum_required(VERSION 3.20)
project(min LANGUAGES CXX Fortran)
set(CMAKE_CXX_SCAN_FOR_MODULES OFF)
# set OFF if not using C++ modules, or it can trip similar compiler errors due to "-fmodules-ts" flags auto-added when ON.
message(STATUS "CMAKE_OSX_SYSROOT ${CMAKE_OSX_SYSROOT}")
foreach(i IN ITEMS OS_NAME OS_VERSION OS_RELEASE OS_PLATFORM)
@olibre
olibre / cpp_legacy_inheritance_vs_std_variant.md
Last active June 6, 2025 07:27 — forked from GuillaumeDua/cpp_legacy_inheritance_vs_std_variant.md
C++ legacy inheritance vs CRTP + std::variant