CMake : get_target_property called on non-existent target “xyz”
This is a C/C++ project. I want to exclude a particular compilation target (say “xyz”) from my setup. There are macros already in place for that (say, XYZ), which I have successfully set to OFF so that the sources are not included.
Passing CMake command with cache entry not working and automatically ignored
I want to design some cmake cache entry as alias from the automake/autoconf like CC
to CMAKE_C_COMPILER
, CXX
to CMAKE_CXX_COMPILER
, CFLAGS
to CMAKE_C_FLAGS
etc, but cmake always ignore my passed -D
entrys on the compiler names insert to the first configuration.