Skip to content

Commit

Permalink
for std::max on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mhekkel committed Mar 12, 2024
1 parent e2db07c commit 01ca5e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ add_library(libmcfp::libmcfp ALIAS libmcfp)

target_compile_features(libmcfp INTERFACE cxx_std_20)

if(MSVC)
target_compile_definitions(libmcfp PUBLIC NOMINMAX=1)
endif()

# adding header sources just helps IDEs
target_sources(libmcfp PUBLIC
FILE_SET mcfp_headers TYPE HEADERS
Expand Down

0 comments on commit 01ca5e5

Please sign in to comment.