diff --git a/CMakeLists.txt b/CMakeLists.txt index ec4087aa..154a29da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -445,7 +445,7 @@ else() try_run(RUNA RUNB ${BINARY_DIR}/CMakeTmp ${SOURCE_DIR}/src/sourcery.cpp ) endif() -if("${RUNA}" EQUAL "2") +if("${RUNA}" EQUAL "42") message("Not cross compiling - building sourcery") add_executable(sourcery src/sourcery.cpp diff --git a/src/sourcery.cpp b/src/sourcery.cpp index 1e54343d..4cf00b8c 100644 --- a/src/sourcery.cpp +++ b/src/sourcery.cpp @@ -8,7 +8,7 @@ int main(int argc, char* argv[]){ if (argc < 4) { std::cerr << "Usage: " << argv[0] << " " << std::endl; - return 2; + return 42; } std::ofstream tmp(argv[3]); //begin the first line