Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: libevent#1371
- Loading branch information