34 SET(PASCAL_TEST_WAS_RUN 1) |
34 SET(PASCAL_TEST_WAS_RUN 1) |
35 ENDIF(NOT CMAKE_Pascal_COMPILER_WORKS) |
35 ENDIF(NOT CMAKE_Pascal_COMPILER_WORKS) |
36 |
36 |
37 IF(NOT CMAKE_Pascal_COMPILER_WORKS) |
37 IF(NOT CMAKE_Pascal_COMPILER_WORKS) |
38 MESSAGE(STATUS "Check for working Pascal compiler: ${CMAKE_Pascal_COMPILER} -- broken") |
38 MESSAGE(STATUS "Check for working Pascal compiler: ${CMAKE_Pascal_COMPILER} -- broken") |
39 FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log |
39 FILE(APPEND ${CMAKE_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/CMakeError.log |
40 "Determining if the Pascal compiler works failed with " |
40 "Determining if the Pascal compiler works failed with " |
41 "the following output:\n${OUTPUT}\n\n") |
41 "the following output:\n${OUTPUT}\n\n") |
42 MESSAGE(FATAL_ERROR "The Pascal builder \"${CMAKE_Pascal_COMPILER}\" " |
42 MESSAGE(FATAL_ERROR "The Pascal builder \"${CMAKE_Pascal_COMPILER}\" " |
43 "is not able to compile, and link a simple test program.\nIt fails " |
43 "is not able to compile and link a simple test program.\nIt fails " |
44 "with the following output:\n ${OUTPUT}\n\n" |
44 "with the following output:\n ${OUTPUT}\n\n" |
45 "CMake will not be able to correctly generate this project.") |
45 "CMake will not be able to correctly generate this project.") |
46 ELSE(NOT CMAKE_Pascal_COMPILER_WORKS) |
46 ELSE(NOT CMAKE_Pascal_COMPILER_WORKS) |
47 IF(PASCAL_TEST_WAS_RUN) |
47 IF(PASCAL_TEST_WAS_RUN) |
48 MESSAGE(STATUS "Check for working Pascal compiler: ${CMAKE_Pascal_COMPILER} -- works") |
48 MESSAGE(STATUS "Check for working Pascal compiler: ${CMAKE_Pascal_COMPILER} -- works") |
49 FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log |
49 FILE(APPEND ${CMAKE_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/CMakeOutput.log |
50 "Determining if the Pascal compiler works passed with " |
50 "Determining if the Pascal compiler works passed with " |
51 "the following output:\n${OUTPUT}\n\n") |
51 "the following output:\n${OUTPUT}\n\n") |
52 ENDIF(PASCAL_TEST_WAS_RUN) |
52 ENDIF(PASCAL_TEST_WAS_RUN) |
53 SET(CMAKE_Pascal_COMPILER_WORKS 1 CACHE INTERNAL "") |
53 SET(CMAKE_Pascal_COMPILER_WORKS 1 CACHE INTERNAL "") |
54 ENDIF(NOT CMAKE_Pascal_COMPILER_WORKS) |
54 ENDIF(NOT CMAKE_Pascal_COMPILER_WORKS) |