cmake version : 3.18.5 MinGW Makefiles Host : windows target : ppc compiler : windriver
I want to create two different executables with different flags. for execample i want to create one executable with flag(-tPPCE) and another with flag(-tPPCEV), These flags define the type of hardware. If i try to set this value in their respective CMakelists.txt with
set_target_properties(app1 PROPERTIES CMAKE_C_FLAGS -tPPCE)
set_target_properties(app2 PROPERTIES CMAKE_C_FLAGS -tPPCEV)
it is not working.
It is working only if i set this value in the toolchain file where i have set all other flags.