fastfusion icon indicating copy to clipboard operation
fastfusion copied to clipboard

CMake Error at CMakeLists.txt:27 (list): list index: 1 out of range (-1, 0)

Open InkSpade opened this issue 4 years ago • 2 comments

jensen@jensen-ThinkPad-T480:~/fastfusion-master/build$ cmake .. CMake Error at CMakeLists.txt:27 (list): list index: 1 out of range (-1, 0)

-- GCC Major Version is 7 -- GCC Major Version is -- Number of avx2 occurrences in /proc/cpuinfo: 8 -- Compiling with AVX2 support -- PROJECT_SOURCE_DIR is /home/fcl/fastfusion-master -- Found qglviewer2, linking QGLViewer -- Configuring incomplete, errors occurred! See also "/home/jensen/fastfusion-master/build/CMakeFiles/CMakeOutput.log". See also "/home/jensen/fastfusion-master/build/CMakeFiles/CMakeError.log".

Has anyone encountered the same problem as me?

InkSpade avatar Apr 22 '20 00:04 InkSpade

I just changed lines 21-28 in CMakeLists to:

if (CMAKE_COMPILER_IS_GNUCC) execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION) string(REGEX MATCHALL "[0-9]+" GCC_VERSION_COMPONENTS ${GCC_VERSION}) list(GET GCC_VERSION_COMPONENTS 0 GCC_MAJOR) list(GET GCC_VERSION_COMPONENTS 0 GCC_MINOR)

message(STATUS "GCC Major Version is " ${GCC_MAJOR})
message(STATUS "GCC Major Version is " ${GCC_MINOR})

endif()

reginehartwig avatar Jul 11 '20 10:07 reginehartwig

Comment/remove that if : lines from 22 to 31

remmel avatar Sep 16 '20 15:09 remmel