Skip to content

Commit

Permalink
* MDF [cmake/NNGOptions] disable UT when build with static libs
Browse files Browse the repository at this point in the history
Signed-off-by: jaylin <[email protected]>
  • Loading branch information
JaylinYu committed Dec 8, 2023
1 parent 559129e commit 8f7e315
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/NNGOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

include(CMakeDependentOption)

if (CMAKE_CROSSCOMPILING)
if (CMAKE_CROSSCOMPILING OR BUILD_WITH_STATIC_LIBS)
set(NNG_NATIVE_BUILD OFF)
else ()
set(NNG_NATIVE_BUILD ON)
Expand All @@ -28,6 +28,10 @@ option(NNG_TESTS "Build and run tests." ${NNG_NATIVE_BUILD})
option(NNG_TOOLS "Build extra tools." ${NNG_NATIVE_BUILD})
option(NNG_ENABLE_NNGCAT "Enable building nngcat utility." ${NNG_TOOLS})
option(NNG_ENABLE_COVERAGE "Enable coverage reporting." OFF)

message(NNG_TESTS = "${NNG_TESTS}")
message(NNG_TOOLS = "${NNG_TOOLS}")

# Eliding deprecated functionality can be used to build a slimmed down
# version of the library, or alternatively to test for application
# preparedness for expected feature removals (in the next major release.)
Expand Down

0 comments on commit 8f7e315

Please sign in to comment.