Browse Source

fix builds again...

alex 2 years ago
parent
commit
32048bbe99
1 changed files with 2 additions and 2 deletions
  1. 2 2
      CMakeLists.txt

+ 2 - 2
CMakeLists.txt

@@ -35,9 +35,9 @@ endif()
 
 
 if(MSVC)
-    target_compile_definitions(enet PRIVATE -W3)
+    target_compile_options(enet PRIVATE -W3)
 else()
-    target_compile_definitions(enet PRIVATE -Wno-error)
+    target_compile_options(enet PRIVATE -Wno-error)
 endif()
 
 target_include_directories(enet PUBLIC ${PROJECT_SOURCE_DIR}/include)