summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeSystemSpecificInformation.cmake
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-08-18 13:28:41 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-08-18 13:28:41 (GMT)
commitc8c5bb4e22acae159d495c367656c95048a539ad (patch)
tree76343882666b3f822868472ebe63511881ba28d8 /Modules/CMakeSystemSpecificInformation.cmake
parenta5bc469339d594863abe2d914f6d99a76a3704ca (diff)
downloadCMake-c8c5bb4e22acae159d495c367656c95048a539ad.zip
CMake-c8c5bb4e22acae159d495c367656c95048a539ad.tar.gz
CMake-c8c5bb4e22acae159d495c367656c95048a539ad.tar.bz2
BUG: Unly set gcc flags for C compiler if CMAKE_COMPILER_IS_GNUCC is set
Diffstat (limited to 'Modules/CMakeSystemSpecificInformation.cmake')
-rw-r--r--Modules/CMakeSystemSpecificInformation.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/CMakeSystemSpecificInformation.cmake b/Modules/CMakeSystemSpecificInformation.cmake
index 2c88fa5..bdc3fe0 100644
--- a/Modules/CMakeSystemSpecificInformation.cmake
+++ b/Modules/CMakeSystemSpecificInformation.cmake
@@ -28,8 +28,10 @@ SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG "") # -rpath
SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG_SEP "") # : or empty
SET(CMAKE_LIBRARY_PATH_FLAG "-L")
SET(CMAKE_LINK_LIBRARY_FLAG "-l")
-IF(CMAKE_COMPILER_IS_GNUCXX)
+IF(CMAKE_COMPILER_IS_GNUCC)
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC") # -pic
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
+IF(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-fPIC") # -pic
ENDIF(CMAKE_COMPILER_IS_GNUCXX)