Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 9b47f2b

Browse files
authored
Add --pic default for ISPC compilation (#265)
fixes #262
1 parent 6d4f4a7 commit 9b47f2b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ endif()
8383
include(OpenAccHelper)
8484
include(ClangFormatHelper)
8585

86+
# =============================================================================
87+
# ISPC should compile with --pic by default
88+
# =============================================================================
89+
set(CMAKE_ISPC_FLAGS "--pic ${CMAKE_ISPC_FLAGS}")
90+
8691
# =============================================================================
8792
# Common build options
8893
# =============================================================================

0 commit comments

Comments
 (0)