Thanks, @lerandc yeah that indeed solves the problem while cmake. Sorry I ran into another problem it seems while pip installing, there is some error generated. I think it is due to the fact that cuprismatic library is not found.
Can you say what I am doing wrong?
/home/tara/anaconda3/envs/4dsim/compiler_compat/ld: cannot find -lcuprismatic
Thanks a lot!!