kou commented on code in PR #252:
URL: https://github.com/apache/arrow-cookbook/pull/252#discussion_r963781154


##########
cpp/code/CMakeLists.txt:
##########
@@ -42,9 +49,14 @@ function(RECIPE TARGET)
             common.cc
             main.cc
     )
+    if(TARGET Arrow::arrow_shared)
+        set(ARROW_SHARED_NAME Arrow::arrow_shared)
+    else()
+        set(ARROW_SHARED_NAME arrow_shared)
+    endif()
     target_link_libraries(
             ${TARGET}
-            arrow_shared
+            ${ARROW_SHARED_NAME}
             arrow_dataset
             arrow_flight
             parquet

Review Comment:
   Oh, sorry. Yes. I missed `INTERFACE`...



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to