periscop / openscop

A Specification and a Library for Data Exchange in Polyhedral Compilation Tools
BSD 3-Clause "New" or "Revised" License
26 stars 14 forks source link

Fix CMake build #47

Closed jmmartinez closed 3 months ago

jmmartinez commented 3 months ago

The CMake build seems to be broken. This patch tries to fix it.

The first commit fixes a broken if-elif-else (there are 2 elses).

jmmartinez@LAPTOP-BN3C4N6O:~/polyhedral/openscop/_build$ ninja
[0/1] Re-running CMake...
CMake Error at CMakeLists.txt:131 (else):
  Flow control statements are not properly nested.

The second commit adds files that are missing (but used) in the extensions.

/usr/bin/ld: source/libosl.so: undefined reference to `osl_annotation_interface'
/usr/bin/ld: source/libosl.so: undefined reference to `osl_scatinfos_interface'
/usr/bin/ld: source/libosl.so: undefined reference to `osl_region_interface'
jmmartinez commented 3 months ago

Arf, I'm closing it since another PR already fixes it.