Skip to content

Commit 16b8291

Browse files
committed
Enable /Zc:preprocessor only with MSVC
1 parent 667c5b8 commit 16b8291

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ if (SPOUT_BUILD_ARM)
6666
File(DOWNLOAD https://github.com/DLTcollab/sse2neon/raw/master/sse2neon.h ${PROJECT_SOURCE_DIR}/SPOUTSDK/sse2neon/sse2neon.h)
6767
# Add compiler include_directory and /Zc:preprocessor define
6868
include_directories(SPOUTSDK/sse2neon)
69-
add_compile_options(/Zc:preprocessor)
69+
if (MSVC)
70+
add_compile_options(/Zc:preprocessor)
71+
endif (MSVC)
7072
endif (SPOUT_BUILD_ARM)
7173

7274
if (SPOUT_BUILD_CMT AND MSVC)

0 commit comments

Comments
 (0)