Skip to content

Commit

Permalink
cmake: Only link tests statically for android-system target
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Gunnerson <[email protected]>
  • Loading branch information
chenxiaolong committed Jul 4, 2018
1 parent d369387 commit 6ebd851
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libmbbootimg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ if(variants AND MBP_ENABLE_TESTS)
OpenSSL::Crypto
)

if(ANDROID)
if(${MBP_BUILD_TARGET} STREQUAL android-system)
unix_link_executable_statically(mbbootimg_tests)
endif()

Expand Down
2 changes: 1 addition & 1 deletion libmbcommon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ if(variants AND MBP_ENABLE_TESTS)
gmock_main
)

if(ANDROID)
if(${MBP_BUILD_TARGET} STREQUAL android-system)
unix_link_executable_statically(mbcommon_tests)
endif()

Expand Down
2 changes: 1 addition & 1 deletion libmbdevice/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ if(variants AND MBP_ENABLE_TESTS)
gtest_main
)

if(ANDROID)
if(${MBP_BUILD_TARGET} STREQUAL android-system)
unix_link_executable_statically(mbdevice_tests)
endif()

Expand Down
2 changes: 1 addition & 1 deletion libmbsign/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ if(variants AND MBP_ENABLE_TESTS)
gtest_main
)

if(ANDROID)
if(${MBP_BUILD_TARGET} STREQUAL android-system)
unix_link_executable_statically(mbsign_tests)
endif()

Expand Down
2 changes: 1 addition & 1 deletion libmbsparse/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ if(variants AND MBP_ENABLE_TESTS)
gtest_main
)

if(ANDROID)
if(${MBP_BUILD_TARGET} STREQUAL android-system)
unix_link_executable_statically(mbsparse_tests)
endif()

Expand Down

0 comments on commit 6ebd851

Please sign in to comment.