summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnuradio-runtime/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnuradio-runtime/CMakeLists.txt b/gnuradio-runtime/CMakeLists.txt
index 937eba17f4..83705cd83c 100644
--- a/gnuradio-runtime/CMakeLists.txt
+++ b/gnuradio-runtime/CMakeLists.txt
@@ -58,6 +58,13 @@ if(ENABLE_COMMON_PCH)
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>
)
+ if(MSVC)
+ target_compile_definitions(common-precompiled-headers PUBLIC
+ # disables stupidity and enables std::min and std::max
+ -DNOMINMAX
+ )
+ endif(MSVC)
+
target_precompile_headers(
common-precompiled-headers
PUBLIC