@@ -22,7 +22,7 @@ set(SCRIPTS
2222 "Scripts/config.json" )
2323
2424if (APPLE )
25- find_library (JSCORE_LIBRARY JavaScriptCore)
25+ find_library (JAVASCRIPTCORE_LIBRARY JavaScriptCore)
2626 if (IOS)
2727 set (PLIST_FILE
2828 "${CMAKE_CURRENT_LIST_DIR} /iOS/Info.plist" )
@@ -54,7 +54,7 @@ if(APPLE)
5454 set_source_files_properties (${REFERENCE_IMAGES} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources/ReferenceImages" )
5555 endif ()
5656 set (ADDITIONAL_LIBRARIES ${ADDITIONAL_LIBRARIES}
57- PRIVATE ${JSCORE_LIBRARY }
57+ PRIVATE ${JAVASCRIPTCORE_LIBRARY }
5858 PRIVATE NativeCamera)
5959 set (RESOURCE_FILES ${STORYBOARD} )
6060elseif (UNIX )
@@ -115,7 +115,6 @@ target_include_directories(Playground PRIVATE "Source" ".")
115115target_link_to_dependencies(Playground
116116 PRIVATE AppRuntime
117117 PRIVATE Canvas
118- PRIVATE ChromeDevTools
119118 PRIVATE Console
120119 PRIVATE GraphicsDevice
121120 PRIVATE NativeCapture
@@ -129,10 +128,10 @@ target_link_to_dependencies(Playground
129128 ${ADDITIONAL_LIBRARIES}
130129 ${BABYLON_NATIVE_PLAYGROUND_EXTENSION_LIBRARIES} )
131130
132- if ( WIN32 )
133- target_link_to_dependencies(Playground
134- PRIVATE "shlwapi.lib" )
135- endif ( )
131+ # See https://gitlab.kitware.com/cmake/cmake/-/issues/23543
132+ # If we can set minimum required to 3.26+, then we can use the `copy -t` syntax instead.
133+ add_custom_command ( TARGET Playground POST_BUILD
134+ COMMAND ${CMAKE_COMMAND} -E $<IF:$< BOOL :$<TARGET_RUNTIME_DLLS:Playground>>,copy, true > $<TARGET_RUNTIME_DLLS:Playground> $<TARGET_FILE_DIR:Playground> )
136135
137136if (UNIX AND NOT APPLE AND NOT ANDROID)
138137 # Ubuntu mixes old experimental header and new runtime libraries
@@ -176,6 +175,7 @@ if(APPLE)
176175 RESOURCE "${RESOURCE_FILES} "
177176 FOLDER "Playground" )
178177 endif ()
178+ set_property (TARGET Playground PROPERTY UNITY_BUILD false )
179179endif ()
180180
181181if (WINDOWS_STORE)
0 commit comments