Skip to content

Commit 3e6d293

Browse files
committed
Use /FI for MSVC forced-includes (#2684)
### Description of changes: For MSVC, the `/FI` option should be used for force-includes: https://learn.microsoft.com/en-us/cpp/build/reference/fi-name-forced-include-file?view=msvc-170 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.
1 parent e4f67d2 commit 3e6d293

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

third_party/jitterentropy/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ else()
3535
endif()
3636

3737
if(BORINGSSL_PREFIX)
38-
set(JITTER_ENETROPY_PREFIX_INCLUDE "--include=${PROJECT_BINARY_DIR}/symbol_prefix_include/openssl/boringssl_prefix_symbols.h")
38+
if(MSVC)
39+
set(JITTER_ENETROPY_PREFIX_INCLUDE "/FI ${PROJECT_BINARY_DIR}/symbol_prefix_include/openssl/boringssl_prefix_symbols.h")
40+
else()
41+
set(JITTER_ENETROPY_PREFIX_INCLUDE "--include=${PROJECT_BINARY_DIR}/symbol_prefix_include/openssl/boringssl_prefix_symbols.h")
42+
endif()
3943
endif()
4044

4145
set(JITTER_COMPILE_FLAGS "${JITTER_COMPILE_FLAGS} ${JITTER_ENETROPY_PREFIX_INCLUDE}")

0 commit comments

Comments
 (0)