summaryrefslogtreecommitdiffstats
path: root/host/lib/convert
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-02-17 12:35:01 -0800
committerJosh Blum <josh@joshknows.com>2011-02-17 12:35:01 -0800
commit8b0fbfcd12c7f58ad73678f72681c5f75c1d5880 (patch)
tree37d4a4c3e719d8e357a9c123e91874c6ab21a5b0 /host/lib/convert
parente11ced6bab02d8f548f424e0687b81e73769b9a7 (diff)
downloaduhd-8b0fbfcd12c7f58ad73678f72681c5f75c1d5880.tar.gz
uhd-8b0fbfcd12c7f58ad73678f72681c5f75c1d5880.tar.bz2
uhd-8b0fbfcd12c7f58ad73678f72681c5f75c1d5880.zip
uhd: use source properties to set flags and defs not globally, but only for the source
Diffstat (limited to 'host/lib/convert')
-rw-r--r--host/lib/convert/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/host/lib/convert/CMakeLists.txt b/host/lib/convert/CMakeLists.txt
index de9c660e1..abc9c2707 100644
--- a/host/lib/convert/CMakeLists.txt
+++ b/host/lib/convert/CMakeLists.txt
@@ -35,7 +35,10 @@ CHECK_INCLUDE_FILE_CXX(emmintrin.h HAVE_EMMINTRIN_H)
UNSET(CMAKE_REQUIRED_FLAGS)
IF(HAVE_EMMINTRIN_H)
- ADD_DEFINITIONS(${EMMINTRIN_FLAGS})
+ SET_SOURCE_FILES_PROPERTIES(
+ ${CMAKE_CURRENT_SOURCE_DIR}/convert_with_sse2.cpp
+ PROPERTIES COMPILE_FLAGS ${EMMINTRIN_FLAGS}
+ )
LIBUHD_APPEND_SOURCES(
${CMAKE_CURRENT_SOURCE_DIR}/convert_with_sse2.cpp
)