equal
deleted
inserted
replaced
10 |
10 |
11 enable_language(Pascal) |
11 enable_language(Pascal) |
12 add_flag_append(CMAKE_Pascal_FLAGS "-Cs2000000") |
12 add_flag_append(CMAKE_Pascal_FLAGS "-Cs2000000") |
13 add_flag_append(CMAKE_Pascal_FLAGS_DEBUG "-gv") |
13 add_flag_append(CMAKE_Pascal_FLAGS_DEBUG "-gv") |
14 add_flag_append(CMAKE_Pascal_FLAGS_RELEASE "-Xs") |
14 add_flag_append(CMAKE_Pascal_FLAGS_RELEASE "-Xs") |
|
15 if(UNIX) |
|
16 include(TargetArch) |
|
17 target_architecture(CMAKE_TARGET_ARCHITECTURES) |
|
18 if(${CMAKE_Pascal_COMPILER_VERSION} VERSION_GREATER 2.7 OR ${CMAKE_TARGET_ARCHITECTURES} MATCHES "x86_64" OR ${CMAKE_TARGET_ARCHITECTURES} MATCHES "i386") |
|
19 add_flag_append(CMAKE_Pascal_FLAGS "-fPIC") |
|
20 endif() |
|
21 endif(UNIX) |
15 |
22 |
16 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc) |
23 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc) |
17 include_directories(${CMAKE_CURRENT_BINARY_DIR}) |
24 include_directories(${CMAKE_CURRENT_BINARY_DIR}) |
18 |
25 |
19 |
26 |