Skip to content

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

@ozdang

Description

@ozdang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions