VisualDL icon indicating copy to clipboard operation
VisualDL copied to clipboard

CMakeLists doesn't compile tests on release

Open jetfuel opened this issue 8 years ago • 3 comments

In the CMakeLists.txt, line 55 it says # compile test only in release mode. So it seems we do want to compile tests in release mode.

However, the actual flow shows

if (NOT ON_RELEASE)
add_executable(vl_test

Looks like we only compile tests during development. It doesn't match the description.

Which one is the correct behavior? Tests on release or tests on development?

jetfuel avatar Jan 25 '18 23:01 jetfuel

yes, it seems that test is also needed when release.

so this flag can be removed.

Superjomn avatar Jan 26 '18 15:01 Superjomn

@Superjomn In the CMakefile, the test requires GLOG and GFLAG. But we only include the GLOG and GFLAG in Debug Mode.

Is there a reason why we only include the GLOG and GFLAG in the Debug Mode?

jetfuel avatar Jan 29 '18 19:01 jetfuel

VisualDL 2.0 is builted by pure python3, so there is no more CMakeList and such compile issues from now on. Issues closed

ZeyuChen avatar May 22 '20 16:05 ZeyuChen