CMake: don't build tests when imported in another project

This commit is contained in:
Benoit Blanchon
2020-04-11 12:25:38 +02:00
parent 1f7a5e6943
commit ae9b7926a2
7 changed files with 56 additions and 73 deletions

View File

@ -3,12 +3,5 @@
export CC="$_CC"
export CXX="$_CXX"
if [ -n "$SANITIZE" ]; then
export CXXFLAGS="-fsanitize=$SANITIZE"
BUILD_TYPE="Debug"
else
BUILD_TYPE="Release"
fi
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE .
cmake -DCMAKE_BUILD_TYPE=Release .
cmake --build .