How to pass COMPILE_DEFINITIONS cmake parameter via terminal? I tried to pass -DCOMPILE_DEFINITION(S)="MyOption1" , -DCOMPILE_DEFINITION_LIST="MyOption1 MyOption2" , -DMyOption1=ON - these parameters are not passed.
But if you write the string ADD_DEFINITIONS(-MyOption1 -MyOption2) in CMakeLists.txt , they are perceived.
How to transfer these parameters through the terminal?