Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(495)

Unified Diff: CMakeLists.txt

Issue 1847233002: cmake move libyuv_unittest target into the if(TEST) condition (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: CMakeLists.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f74c05f6b7a611ada2b82553d79b4c1b9c236655..718b47ad32e1eb319749d12e9c4fafca214c0e42 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -128,14 +128,15 @@ if(TEST)
if (JPEG_FOUND)
target_link_libraries(libyuv_unittest ${JPEG_LIBRARY})
endif()
-endif()
+
+ if(NACL AND NACL_LIBC STREQUAL "newlib")
+ target_link_libraries(libyuv_unittest glibc-compat)
+ endif()
-if(NACL AND NACL_LIBC STREQUAL "newlib")
- target_link_libraries(libyuv_unittest glibc-compat)
+ target_link_libraries(libyuv_unittest gflags)
+
endif()
-target_link_libraries(libyuv_unittest gflags)
-
install(TARGETS ${ly_lib_name} DESTINATION lib)
install(FILES ${ly_header_files} DESTINATION include/libyuv)
install(FILES ${ly_inc_dir}/libyuv.h DESTINATION include/)
« no previous file with comments | « no previous file | README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698