diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-09-17 19:55:17 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-09-17 19:55:17 (GMT) |
commit | 4ee1ee1bd0d6b19feb5846bfeccdc39a90d52ac8 (patch) | |
tree | 911ac1b075af9be769d8999e61dec635b1257f4c /Modules | |
parent | f9391ab2916755b319dff4dd11282425b2c076cc (diff) | |
download | CMake-4ee1ee1bd0d6b19feb5846bfeccdc39a90d52ac8.zip CMake-4ee1ee1bd0d6b19feb5846bfeccdc39a90d52ac8.tar.gz CMake-4ee1ee1bd0d6b19feb5846bfeccdc39a90d52ac8.tar.bz2 |
ENH: add support for the Portland Compiler to CMake, can build cmake and the tests pass (except the wrapping tests, which fail to link to the g++-compiled Qt)
Alex
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeCCompilerId.c | 3 | ||||
-rw-r--r-- | Modules/CMakeCXXCompilerId.cpp | 3 | ||||
-rw-r--r-- | Modules/Platform/Linux-PGI-C.cmake | 5 | ||||
-rw-r--r-- | Modules/Platform/Linux-PGI-CXX.cmake | 4 |
4 files changed, 15 insertions, 0 deletions
diff --git a/Modules/CMakeCCompilerId.c b/Modules/CMakeCCompilerId.c index f88f57e..ec11b6c 100644 --- a/Modules/CMakeCCompilerId.c +++ b/Modules/CMakeCCompilerId.c @@ -27,6 +27,9 @@ #elif defined(__IBMC__) # define COMPILER_ID "VisualAge" +#elif defined(__PGI) +# define COMPILER_ID "PGI" + #elif defined(__GNUC__) # define COMPILER_ID "GNU" diff --git a/Modules/CMakeCXXCompilerId.cpp b/Modules/CMakeCXXCompilerId.cpp index 1f714d9..86d65bd 100644 --- a/Modules/CMakeCXXCompilerId.cpp +++ b/Modules/CMakeCXXCompilerId.cpp @@ -29,6 +29,9 @@ #elif defined(__IBMCPP__) # define COMPILER_ID "VisualAge" +#elif defined(__PGI) +# define COMPILER_ID "PGI" + #elif defined(__GNUC__) # define COMPILER_ID "GNU" diff --git a/Modules/Platform/Linux-PGI-C.cmake b/Modules/Platform/Linux-PGI-C.cmake new file mode 100644 index 0000000..104e3dc --- /dev/null +++ b/Modules/Platform/Linux-PGI-C.cmake @@ -0,0 +1,5 @@ +SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") + +SET (CMAKE_C_CREATE_PREPROCESSED_SOURCE "<CMAKE_C_COMPILER> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>") +SET (CMAKE_C_CREATE_ASSEMBLY_SOURCE "<CMAKE_C_COMPILER> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>") + diff --git a/Modules/Platform/Linux-PGI-CXX.cmake b/Modules/Platform/Linux-PGI-CXX.cmake new file mode 100644 index 0000000..1d8c92a --- /dev/null +++ b/Modules/Platform/Linux-PGI-CXX.cmake @@ -0,0 +1,4 @@ +SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") + +SET (CMAKE_CXX_CREATE_PREPROCESSED_SOURCE "<CMAKE_CXX_COMPILER> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>") +SET (CMAKE_CXX_CREATE_ASSEMBLY_SOURCE "<CMAKE_CXX_COMPILER> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>") |