summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wsutil/CMakeLists.txt22
1 files changed, 8 insertions, 14 deletions
diff --git a/wsutil/CMakeLists.txt b/wsutil/CMakeLists.txt
index 05b32815c1..7a2a19382a 100644
--- a/wsutil/CMakeLists.txt
+++ b/wsutil/CMakeLists.txt
@@ -32,18 +32,6 @@ if(WIN32)
)
ENDIF(WIN32)
-if(HAVE_SSE4_2)
- set( WSUTIL_SSE42_FILES
- ws_mempbrk_sse42.c
- )
-endif()
-
-if(NOT HAVE_POPCOUNT)
- set( WSUTIL_POPCOUNT_FILES
- popcount.c
- )
-endif()
-
set(WSUTIL_FILES
adler32.c
aes.c
@@ -94,10 +82,16 @@ set(WSUTIL_FILES
ws_mempbrk_sse42.c
ws_version_info.c
${WSUTIL_PLATFORM_FILES}
- ${WSUTIL_SSE42_FILES}
- ${WSUTIL_POPCOUNT_FILES}
)
+if(HAVE_SSE4_2)
+ set(WSUTIL_FILES ${WSUTIL_FILES} ws_mempbrk_sse42.c)
+endif()
+
+if(NOT HAVE_POPCOUNT)
+ set(WSUTIL_FILES ${WSUTIL_FILES} popcount.c)
+endif()
+
if(APPLE)
#
# We assume that APPLE means OS X so that we have the OS X