Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 1.3.81 (2.0.0-alpha)
-
None
-
jom 0.9.1
Description
There are problems with preprocessor conditionals. The following works:
X = 1
!if "$(X)" == "1"
!message "X=1"
!else
!error "X is not 1"
!endif
all:
While the following executes the error statement in addtion to the first message:
X = 1
!if "$(X)" == "1"
!message "X=1"
!elseif "$(X)" == "2"
!message "X=2"
!else
!error "X is not 1 or 2"
!endif
all: