equal
deleted
inserted
replaced
89 if (APPLE) |
89 if (APPLE) |
90 set(engine_output_name "hwengine.dylib") |
90 set(engine_output_name "hwengine.dylib") |
91 endif (APPLE) |
91 endif (APPLE) |
92 endif(BUILD_ENGINE_LIBRARY) |
92 endif(BUILD_ENGINE_LIBRARY) |
93 |
93 |
94 find_program(fpc_executable fpc) |
94 IF(FPC) |
|
95 set(fpc_executable ${FPC}) |
|
96 ELSE() |
|
97 find_program(fpc_executable fpc) |
|
98 ENDIF() |
95 |
99 |
96 if(fpc_executable) |
100 if(fpc_executable) |
97 exec_program(${fpc_executable} ARGS "-iV" OUTPUT_VARIABLE fpc_output) |
101 exec_program(${fpc_executable} ARGS "-iV" OUTPUT_VARIABLE fpc_output) |
98 endif(fpc_executable) |
102 endif(fpc_executable) |
99 |
103 |
136 message(FATAL_ERROR "Minimum required version of FreePascal is 2.2.0") |
140 message(FATAL_ERROR "Minimum required version of FreePascal is 2.2.0") |
137 elseif(APPLE AND (fpc_ver LESS "020600")) |
141 elseif(APPLE AND (fpc_ver LESS "020600")) |
138 message(FATAL_ERROR "Minimum required version of FreePascal is 2.6.0 on Mac OS X") |
142 message(FATAL_ERROR "Minimum required version of FreePascal is 2.6.0 on Mac OS X") |
139 endif() |
143 endif() |
140 else() |
144 else() |
141 message(FATAL_ERROR "No Pascal compiler found!") |
145 message(FATAL_ERROR "No FreePascal compiler found!") |
142 endif() |
146 endif() |
143 |
147 |
144 |
148 |
145 #DEPENDECIES AND EXECUTABLES SECTION |
149 #DEPENDECIES AND EXECUTABLES SECTION |
146 find_package(PNG) |
150 find_package(PNG) |