Skip to content

Commit

Permalink
Move enable_testing() to root directory of hsm lib. (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
darobs authored and mrohera committed Oct 11, 2018
1 parent c7ed2b5 commit 669854e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions edgelet/hsm-sys/azure-iot-hsm-c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ function(prepare_edge_homedir whatIsBuilding)
endfunction(prepare_edge_homedir)

if (run_unittests)
enable_testing()
set(save_ut ${run_unittests})
set(run_unittests OFF CACHE BOOL "unittests" FORCE)
endif(run_unittests)
Expand Down
1 change: 0 additions & 1 deletion edgelet/hsm-sys/azure-iot-hsm-c/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
include(../deps/c-shared/configs/azure_iot_build_rules.cmake)
usePermissiveRulesForSamplesAndTests()

enable_testing()
set(save_ut ${run_unittests})
set(run_unittests OFF CACHE BOOL "unittests" FORCE)
add_subdirectory(../deps/c-shared/testtools/ctest c-shared/testtools/ctest)
Expand Down

0 comments on commit 669854e

Please sign in to comment.