karljj1/kdis

feat: Change from KDIS_SOURCE_DIR to CMAKE_CURRENT_SOURCE_DIR

Closed this issue · 2 comments

The value of KDIS_SOURCE_DIR is not set and can cause UB. Moreover it can cause strange inclue errors while using"auto-tools" like CPM.

From:

SET(BASE_DIR ${KDIS_SOURCE_DIR}/KDIS)

To:

SET(BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/KDIS) 

It's been a long time since I touched this, ill have to look through it and see what its purpose was.
Im happy to take a PR to change it.

I'll create a PR 🥳