Browse Source

Fix macOS build.

Miku AuahDark 2 years ago
parent
commit
464aca21cb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/CMakeLists.txt

+ 1 - 1
src/CMakeLists.txt

@@ -88,7 +88,7 @@ elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
 
 
 	if (NOT IOS)
 	if (NOT IOS)
 		# macOS needs -undefined dynamic_lookup
 		# macOS needs -undefined dynamic_lookup
-		target_compile_definitions(https -undefined dynamic_lookup)
+		target_link_options(https PRIVATE -undefined dynamic_lookup)
 	else ()
 	else ()
 		target_link_libraries(https ${LUA_LIBRARIES})
 		target_link_libraries(https ${LUA_LIBRARIES})
 	endif ()
 	endif ()