mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	CMake: don't build tests when imported in another project
This commit is contained in:
		| @@ -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 . | ||||
|   | ||||
| @@ -1,4 +1,10 @@ | ||||
| #!/bin/sh -ex | ||||
|  | ||||
| "$(dirname "$0")/build.sh" | ||||
| export CC="$_CC" | ||||
| export CXX="$_CXX" | ||||
|  | ||||
| [ -n "$SANITIZE" ] && export CXXFLAGS="-fsanitize=$SANITIZE" | ||||
|  | ||||
| cmake -DCMAKE_BUILD_TYPE=Debug . | ||||
| cmake --build . | ||||
| ctest --output-on-failure . | ||||
|   | ||||
		Reference in New Issue
	
	Block a user