equal
deleted
inserted
replaced
17 exec_program(${HGCOMMAND} |
17 exec_program(${HGCOMMAND} |
18 ARGS identify -in ${CMAKE_CURRENT_SOURCE_DIR} |
18 ARGS identify -in ${CMAKE_CURRENT_SOURCE_DIR} |
19 OUTPUT_VARIABLE version_suffix |
19 OUTPUT_VARIABLE version_suffix |
20 ) |
20 ) |
21 STRING(REGEX REPLACE "(.*) +(.*)" "\\2:\\1" version_suffix ${version_suffix}) |
21 STRING(REGEX REPLACE "(.*) +(.*)" "\\2:\\1" version_suffix ${version_suffix}) |
22 MESSAGE(STATUS "Builing revision ${version_suffix}") |
22 MESSAGE(STATUS "Building revision ${version_suffix}") |
23 set(version_suffix ".${version_suffix}") |
23 set(version_suffix ".${version_suffix}") |
24 # #truncate to numbers only - trying to fix a problem described in http://www.hedgewars.org/node/2019 |
24 # #truncate to numbers only - trying to fix a problem described in http://www.hedgewars.org/node/2019 |
25 # STRING(REGEX REPLACE "^\\.(\\d+)" ".\\1" version_suffix ${version_suffix}) |
25 # STRING(REGEX REPLACE "^\\.(\\d+)" ".\\1" version_suffix ${version_suffix}) |
26 # # screw whole suffix if there's no number |
26 # # screw whole suffix if there's no number |
27 # STRING(REGEX REPLACE "^\\.([a-z]+.*)" "-dev" version_suffix ${version_suffix}) |
27 # STRING(REGEX REPLACE "^\\.([a-z]+.*)" "-dev" version_suffix ${version_suffix}) |
154 set(pascal_compiler_flags_cmn "-dLOWRES" ${pascal_compiler_flags_cmn}) |
154 set(pascal_compiler_flags_cmn "-dLOWRES" ${pascal_compiler_flags_cmn}) |
155 add_definitions(-DLOWRES) |
155 add_definitions(-DLOWRES) |
156 endif(LOWRES) |
156 endif(LOWRES) |
157 |
157 |
158 if(Optz) |
158 if(Optz) |
|
159 # set(pascal_compiler_flags_cmn "-O3" "-OpPENTIUM4" "-CfSSE3" "-Xs" "-Si" ${pascal_compiler_flags_cmn}) |
159 set(pascal_compiler_flags_cmn "-O2" "-Xs" "-Si" ${pascal_compiler_flags_cmn}) |
160 set(pascal_compiler_flags_cmn "-O2" "-Xs" "-Si" ${pascal_compiler_flags_cmn}) |
160 set(haskell_compiler_flags_cmn "-O2" "-w") |
161 set(haskell_compiler_flags_cmn "-O2" "-w") |
161 else(Optz) |
162 else(Optz) |
162 set(pascal_compiler_flags_cmn "-O-" "-g" "-gh" "-gl" "-dDEBUGFILE" ${pascal_compiler_flags_cmn}) |
163 set(pascal_compiler_flags_cmn "-O-" "-g" "-gh" "-gl" "-dDEBUGFILE" ${pascal_compiler_flags_cmn}) |
163 set(haskell_compiler_flags_cmn "-Wall" "-debug" "-dcore-lint") |
164 set(haskell_compiler_flags_cmn "-Wall" "-debug" "-dcore-lint") |