summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/PGI-CXX.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-07-07 13:02:23 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-07-07 13:02:23 (GMT)
commit0ca8f3e699fc2936ccf65a78edf9c74aed0adb68 (patch)
tree0d3df3b7fbf2124e382c8d51a9aae3bc3458408c /Modules/Compiler/PGI-CXX.cmake
parent5553aab0bdc8cfb84c26b99b98779f4401e25a42 (diff)
parenta66004bee06023e9da4e0895ee1afbceaff33bdb (diff)
downloadCMake-0ca8f3e699fc2936ccf65a78edf9c74aed0adb68.zip
CMake-0ca8f3e699fc2936ccf65a78edf9c74aed0adb68.tar.gz
CMake-0ca8f3e699fc2936ccf65a78edf9c74aed0adb68.tar.bz2
Merge topic 'toolchain-flag-init'
a66004be Honor CMAKE_<LANG>_FLAGS[_<CONFIG>]_INIT set in toolchain files cdde77e5 OpenWatcom: Partially modernize platform information modules f9dbe22c Intel: Do not use GNU-like flags on Windows 5a3ed0d7 Intel: Do not use MSVC-like flags for Fortran
Diffstat (limited to 'Modules/Compiler/PGI-CXX.cmake')
-rw-r--r--Modules/Compiler/PGI-CXX.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Compiler/PGI-CXX.cmake b/Modules/Compiler/PGI-CXX.cmake
index 97c9555..896e298 100644
--- a/Modules/Compiler/PGI-CXX.cmake
+++ b/Modules/Compiler/PGI-CXX.cmake
@@ -1,4 +1,4 @@
include(Compiler/PGI)
__compiler_pgi(CXX)
-set(CMAKE_CXX_FLAGS_MINSIZEREL_INIT "${CMAKE_CXX_FLAGS_MINSIZEREL_INIT} -DNDEBUG")
-set(CMAKE_CXX_FLAGS_RELEASE_INIT "${CMAKE_CXX_FLAGS_RELEASE_INIT} -DNDEBUG")
+string(APPEND CMAKE_CXX_FLAGS_MINSIZEREL_INIT " -DNDEBUG")
+string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " -DNDEBUG")