diff options
| author | Sergey Ponomarev <stokito@gmail.com> | 2024-09-07 10:23:31 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2024-09-07 12:44:33 +0300 |
| commit | d3524123a9c24610176f238002887e2034a61685 (patch) | |
| tree | 5f18322f0680b80904ce8596d90051aab006a5d9 /plugins | |
| parent | 88aa2752d994043599f9662b9fa2b629f07058c2 (diff) | |
cmake: enquote variable in string(REPLACE) macros
If a var is empty then the cmake reports an error:
string sub-command REPLACE requires at least four arguments
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/Db3x_mmap/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Db3x_mmap/CMakeLists.txt b/plugins/Db3x_mmap/CMakeLists.txt index d30807aa46..eaff420f7d 100644 --- a/plugins/Db3x_mmap/CMakeLists.txt +++ b/plugins/Db3x_mmap/CMakeLists.txt @@ -3,6 +3,6 @@ set(TARGET Dbx_mmap) # Just a workaround. Better to fix plugins that do not compile with this option. # Even Microsoft recommends to use standard exception handling. -string(REPLACE "/EHsc" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) +string(REPLACE "/EHsc" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") include(${CMAKE_SOURCE_DIR}/cmake/plugin.cmake)
\ No newline at end of file |
