From 016a2f1272125ccbec8a36cedf533775e2d5ed7e Mon Sep 17 00:00:00 2001 From: Jeroen Baert <3607063+Forceflow@users.noreply.github.com> Date: Sat, 26 Aug 2023 14:11:22 +0200 Subject: [PATCH 1/2] Enabled lean and mean headers for MSVC builds --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e4b3b76..24eb714 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,10 @@ # CMake version >= 3.15.0 required because of https://github.com/Forceflow/libmorton/issues/62 # CMake version >= 3.8.2 required because of c++11 cmake_minimum_required(VERSION 3.15.0) -project(libmorton VERSION 0.2.8) +project(libmorton VERSION 0.2.12) if(MSVC) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNOMINMAX=1") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNOMINMAX=1 -DWIN32_LEAN_AND_MEAN=1") endif() option(BUILD_TESTING "Build unit tests for libmorton" ON) From b73ada544fa833a2aa8155af36a31f79ec124c66 Mon Sep 17 00:00:00 2001 From: Jeroen Baert <3607063+Forceflow@users.noreply.github.com> Date: Wed, 17 Jun 2026 00:22:34 +0200 Subject: [PATCH 2/2] Remove paypal link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dedddf1..7cc7837 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Libmorton v0.2.12 -[![CMake](https://github.com/Forceflow/libmorton/actions/workflows/cmake.yml/badge.svg)](https://github.com/Forceflow/libmorton/actions/workflows/cmake.yml) [![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://opensource.org/licenses/MIT) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/forceflow) +[![CMake](https://github.com/Forceflow/libmorton/actions/workflows/cmake.yml/badge.svg)](https://github.com/Forceflow/libmorton/actions/workflows/cmake.yml) [![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://opensource.org/licenses/MIT) * Libmorton is a **C++ header-only library** with methods to efficiently encode/decode 64, 32 and 16-bit Morton codes and coordinates, in 2D and 3D. *Morton order* is also known as *Z-order* or *[the Z-order curve](https://en.wikipedia.org/wiki/Z-order_curve)*. * Libmorton is a **lightweight and portable** library - the only dependencies are standard C++ headers. Architecture-specific optimizations are available.