cmake project() unsets UNIX
I had an issue today with cmake where UNIX is unset by the project statement.
message("before ${UNIX}")
project (MyProj VERSION 0.1.0 LANGUAGES C CXX)
message("after ${UNIX}")
Gives the output:
before 1
after
I am using WSL2 with cmake version 3.24.0-rc3.
Rolling cmake back to V3.22.5 immediately resolved the issue
Edited by ashesman