diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-07-28 00:41:13 +0200 |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-07-28 00:41:13 +0200 |
commit | 5d0d980d9949daf596e10715d686adc95c1c232b (patch) | |
tree | 45ec5b1fd21b10dc996083f5fe5657d8b07c3232 /Modules/Use_wxWindows.cmake | |
parent | 73c618be7036c693cbff764b3765de1bf4626cfb (diff) | |
download | cmake-5d0d980d9949daf596e10715d686adc95c1c232b.tar.gz |
Use string(APPEND) in Modules
Automate with:
find Modules -type f -print0 | xargs -0 perl -i -0pe \
's/set\(([a-zA-Z0-9_]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
Diffstat (limited to 'Modules/Use_wxWindows.cmake')
-rw-r--r-- | Modules/Use_wxWindows.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Use_wxWindows.cmake b/Modules/Use_wxWindows.cmake index d3025ac12a..597b4ecd33 100644 --- a/Modules/Use_wxWindows.cmake +++ b/Modules/Use_wxWindows.cmake @@ -68,7 +68,7 @@ if(WXWINDOWS_FOUND) link_libraries(${WXWINDOWS_LIBRARIES}) endif() if (CMAKE_WXWINDOWS_CXX_FLAGS) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_WXWINDOWS_CXX_FLAGS}") + string(APPEND CMAKE_CXX_FLAGS " ${CMAKE_WXWINDOWS_CXX_FLAGS}") endif() if(WXWINDOWS_DEFINITIONS) add_definitions(${WXWINDOWS_DEFINITIONS}) |