Output is a 'shared object' not an 'executable'
I've got a project building with CMake. I hadn't had this problem until using Ubuntu 16.10 with CMake 3.5.2. To be honest I'm not sure the problem is with CMake and not 'file' and thus 'Files' (the file manager.)
My CMakeLists.txt looks something like this:
add_executable(exe src/source.cpp)
target_link_libraries(exe ${LIBS})
LIBS contains names of a few shared libraries, some of which are also built by CMake.
Now the file manager won't run the executable when I click it. On inspection with the 'file' utility, it reports:
exe: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=885f920f82789a7a15c62243215ccae8ac75b539, stripped
Other executables look the same except they say 'executable' instead of 'shared object'. What could it be that's going on here? Thanks!