cmake -G “Unix Makefiles” -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=TRUE
taken from this site.
does not work when I cd into the folder I get this: CMake Error:
The path to the source directory:
/home/hassooni/Development/sfml/BUILD_SHARED_LIBS=TRUE
contains unsupported character ‘=’.
Please use a different source directory name.
Please help!
Thanks
note: I want to use it with g++ and gvim, I have all the dependencies and have done everything specified by the linked tutorial! 🙁
You should not have spaces between the D and the variable in your declarations. It should be:
note, the spaces between
-DandCMAKE_BUILD_TYPE=Releaseand-DandBUILD_SHARD_LIBS=TRUEhave been removed.