Skip to content

Commit

Permalink
Enabled lean and mean headers for MSVC builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Forceflow committed Aug 26, 2023
1 parent ec77dc0 commit 016a2f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 016a2f1

Please sign in to comment.