Skip to content

Commit 2330516

Browse files
committed
Fixed: windows compilation
1 parent 1fc7ba8 commit 2330516

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

FreeTypeWrapper/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ set(CMAKE_CXX_STANDARD 20)
1010

1111
option(FREETYPE_WRAPPER_DISABLE_WARNINGS_EXTERNAL_LIBS "Disable warnings for external libraries" TRUE)
1212

13+
if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
14+
add_compile_definitions(NOMINMAX)
15+
endif()
16+
1317
set(TargetName FreeTypeWrapper)
1418

1519
add_subdirectory(./External/freetype2)

0 commit comments

Comments
 (0)