diff options
author | Andy Green <andy@warmcat.com> | 2019-03-04 20:43:58 +0800 |
---|---|---|
committer | Andy Green <andy@warmcat.com> | 2019-03-10 08:02:02 +0800 |
commit | cdf6dc35f4b0003d26ed8238ba7893c3a868af8f (patch) | |
tree | e5b162638175fc1c118d67ec488e7cf7177d48c6 /contrib/cross-w64.cmake | |
parent | b50e9fb31b3f72a5d2a89bbddb79bdcf42811c6f (diff) | |
download | libwebsockets-cdf6dc35f4b0003d26ed8238ba7893c3a868af8f.tar.gz |
cmake cross: non-bash doesn't deal with quoted options correctly
Although it works find on Fedora / bash, the extra quotes are snipped
on Ubuntu / dash. Removing the quotes works OK on both.
Diffstat (limited to 'contrib/cross-w64.cmake')
-rw-r--r-- | contrib/cross-w64.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/cross-w64.cmake b/contrib/cross-w64.cmake index 9d4a45ab..4fff8825 100644 --- a/contrib/cross-w64.cmake +++ b/contrib/cross-w64.cmake @@ -29,8 +29,8 @@ set(CMAKE_C_FLAGS "-Wno-error") # optimizations with -O3. # if (CMAKE_BUILD_TYPE MATCHES RELEASE OR CMAKE_BUILD_TYPE MATCHES Release OR CMAKE_BUILD_TYPE MATCHES release) - set(CMAKE_C_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE}" -O2") - set(CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE}" -O2") + set(CMAKE_C_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE} -O2) + set(CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE} -O2) endif() # Where to look for the target environment. (More paths can be added here) |