Author :
Azat Khuzhin
Date :
2022-11-20 14:51:36
Hash :650d8619 Message :cmake: do influence CMAKE_DEBUG_POSTFIX of the outer project (if any)
Consider the following example:
$ touch lib.c
$ cat > CMakeLists.txt <<EOL
add_subdirectory(/src/le/libevent libevent EXCLUDE_FROM_ALL)
add_library(lib lib.c)
EOL
$ mkdir .cmake
$ cmake -DCMAKE_BUILD_TYPE=debug -G Ninja ..
$ ninja
$ ls *.a
liblibd.a
So now outer project also has "d" prefix for libraries.
Let's avoid this by setting non-cached variable.
Fixes: #1371