Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
InkSpade opened this issue Apr 22, 2020 · 2 comments

Comments

@InkSpade
Copy link

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?

@reginehartwig
Copy link

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()

@remmel
Copy link

remmel commented Sep 16, 2020

Comment/remove that if : lines from 22 to 31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants