Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorRobert <krzmbrzl@gmail.com>2020-10-16 16:58:13 +0300
committerRobert <krzmbrzl@gmail.com>2020-10-16 16:58:13 +0300
commiteddd5332dcff962bf149ce7060fb2d949ca256ba (patch)
treed3495c0e1f749f1d7ffef0215a923c1e72026c14 /cmake
parent5cf9dde08be6b64b7a43b5b016c4ff2604f19ad1 (diff)
BUILD(cmake): Fix use of generator expression (follow-up)
This usage of a generator expression has been overlooked in #4533.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/compiler.cmake10
1 files changed, 4 insertions, 6 deletions
diff --git a/cmake/compiler.cmake b/cmake/compiler.cmake
index a333d8e04..50967fe6d 100644
--- a/cmake/compiler.cmake
+++ b/cmake/compiler.cmake
@@ -14,12 +14,10 @@ endif()
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
if(MSVC)
- if($<CONFIG:Release>)
- add_compile_options(
- "/Ox"
- "/fp:fast"
- )
- endif()
+ add_compile_options(
+ "$<$<CONFIG:Release>:/Ox>"
+ "$<$<CONFIG:Release>:/fp:fast>"
+ )
if(32_BIT)
# SSE2 code is generated by default, unless an explict arch is set.