tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
math/blas build failure - cmake lossage
math/blas fails on netbsd-10 amd64 with pkgsrc up to date:
-- Build html documentation: OFF
-- Build man documentation: OFF
-- Configuring done (0.6s)
CMake Error: CMake can not determine linker language for target: run_test_zcomplexabs
CMake Error: CMake can not determine linker language for target: run_test_zcomplexdiv
CMake Error: CMake can not determine linker language for target: run_test_zcomplexmult
CMake Error: CMake can not determine linker language for target: run_test_zminMax
-- Generating done (0.1s)
CMake Generate step failed. Build files cannot be regenerated correctly.
*** Error code 1
Digging into CMakeLists.txt, I find:
where run_test_zcomplexabs has both a command and sources.
add_executable( test_zcomplexabs ${LAPACK_SOURCE_DIR}/INSTALL/test_zcomplexabs.f )
add_custom_target( run_test_zcomplexabs
COMMAND test_zcomplexabs 2> test_zcomplexabs.err
WORKING_DIRECTORY ${LAPACK_BINARY_DIR}/INSTALL
COMMENT "Running test_zcomplexabs in ${LAPACK_BINARY_DIR}/INSTALL with stderr: test_zcomplexabs.err"
SOURCES ${LAPACK_SOURCE_DIR}/INSTALL/test_zcomplexabs.f )
dropping SOURCES makes it build.
Does anybody understand cmake enough to know what is right?
Home |
Main Index |
Thread Index |
Old Index