cmake-cookbook icon indicating copy to clipboard operation
cmake-cookbook copied to clipboard

chapter-05/recipe-04 not print COMMENT in add_custom_command

Open ozdang opened this issue 4 years ago • 0 comments

Expected Behavior

print comment "Intermediate BLAS_LAPACK_wrappers target"

Current Behavior

[user]@[system]:/mnt/d/test-code/cmake-cookbook/chapter-05/recipe-04/cxx-example/build$ cmake --build . [ 16%] Unpacking C++ wrappers for BLAS/LAPACK Scanning dependencies of target math [ 16%] Unpacking C++ wrappers for BLAS/LAPACK [ 33%] Building CXX object deps/CMakeFiles/math.dir/wrap_BLAS_LAPACK/CxxBLAS.cpp.o [ 50%] Building CXX object deps/CMakeFiles/math.dir/wrap_BLAS_LAPACK/CxxLAPACK.cpp.o [ 66%] Linking CXX static library libmath.a [ 66%] Built target math Scanning dependencies of target linear-algebra [ 83%] Building CXX object CMakeFiles/linear-algebra.dir/linear-algebra.cpp.o [100%] Linking CXX executable linear-algebra [100%] Built target linear-algebra

Possible Solution

target BLAS_LAPACK_wrappers is not referred and not executed because of missing "ALL" keyword

Your Environment

  • Version used: Ubuntu 18.04 on WSL2
  • Environment name and version (e.g. PHP 5.4 on nginx 1.9.1): chapter-05/recipe-04/cxx-example/build/deps$ cmake --version cmake version 3.19.20201129-gea21283

ozdang avatar Dec 01 '20 10:12 ozdang