https://github.com/Kitware/CMake
Revision bf732ec464a38b83b312827b61a5ab19a016b824 authored by Brad King on 08 March 2008, 14:50:56 UTC, committed by Brad King on 08 March 2008, 14:50:56 UTC
1 parent 959bd61
Tip revision: bf732ec464a38b83b312827b61a5ab19a016b824 authored by Brad King on 08 March 2008, 14:50:56 UTC
BUG: Fix include_directories command to produce an immediately whether or not 2.4 compatibility is enabled. CMake 2.4 already produced an error, just not immediately.
BUG: Fix include_directories command to produce an immediately whether or not 2.4 compatibility is enabled. CMake 2.4 already produced an error, just not immediately.
Tip revision: bf732ec
qtwrappingmain.cxx
#include <qapplication.h>
#include "qtwrapping.h"
#ifndef _WIN32
# include <stdlib.h>
# include <stdio.h>
#endif
int main(int argc, char *argv[])
{
#ifndef _WIN32
const char* display = getenv("DISPLAY");
if ( display && strlen(display)>0 )
{
#endif
QApplication app(argc,argv);
qtwrapping qtw;
app.setMainWidget(&qtw);
#ifndef _WIN32
}
else
{
printf("Environment variable DISPLAY is not set. I will pretend like the test passed, but you should really set it.\n");
}
#endif
return 0;
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...