Skip to content

Commit 83cf8b6

Browse files
committed
Enable Windows platform in CMake
1 parent 0ce185d commit 83cf8b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ endif()
2929
if( ${TARGET_OS} STREQUAL "Linux" )
3030
set(OS "LINUX")
3131
set(OSNAME "Linux")
32+
elseif ( ${TARGET_OS} STREQUAL "Windows")
33+
set(OS "WIN")
34+
set(OSNAME "Windows")
35+
add_definitions(-DWIN32 -DWIN64 -DWINNT)
3236
else()
3337
message("Unsupported OS: ${TARGET_OS}" )
3438
return()

0 commit comments

Comments
 (0)