rlottie/cmake: Fix cmake build issue for Mac
authorsub.mohanty@samsung.com <smohantty@gmail.com>
Sat, 8 Jun 2019 14:48:23 +0000 (23:48 +0900)
committerHermet Park <hermetpark@gmail.com>
Wed, 19 Jun 2019 04:35:47 +0000 (13:35 +0900)
CMakeLists.txt

index baacbb956623a04df6b929ce7e3cb9a791752df5..8284907885f7d27694f66063895df6953647fb72 100644 (file)
@@ -52,10 +52,18 @@ target_link_libraries(rlottie
                     PRIVATE
                     ${CMAKE_DL_LIBS})
 
-target_link_libraries(rlottie
-                    PUBLIC
-                         "-Wl,--no-undefined"
-                      )
+if(APPLE)
+    target_link_libraries(rlottie
+                        PUBLIC
+                             "-Wl, -undefined error"
+                          )
+else()
+    target_link_libraries(rlottie
+                        PUBLIC
+                             "-Wl,--no-undefined"
+                          )
+endif()
+
 
 if (NOT LIB_INSTALL_DIR)
     set (LIB_INSTALL_DIR "/usr/lib")