summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FindPkgConfig/dummy-pkg-config.bat
blob: b03837030c537aef763161d0b6cf6fc2de4b37f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@ECHO OFF

:LOOP

IF "%1"=="" (
  EXIT /B 255
)

IF "%1"=="--version" (
  ECHO 0.0-cmake-dummy
  EXIT /B 0
)

IF "%1"=="--exists" (
  SHIFT
  ECHO Expected: %*
  ECHO Found:    %PKG_CONFIG_PATH%
  IF NOT "%*"=="%PKG_CONFIG_PATH%" (
    EXIT /B 1
  ) ELSE (
    EXIT /B 0
  )
)
SHIFT
IF NOT "%~1"=="" GOTO LOOP

EXIT /B 255