This repository was archived by the owner on Mar 21, 2024. It is now read-only.
File tree 3 files changed +11
-7
lines changed
3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 6
6
# - Interface target providing compiler-specific options needed to build
7
7
# Thrust's tests, examples, etc.
8
8
#
9
- # thrust.compiler_interface_cpp11
10
- # thrust.compiler_interface_cpp14
11
- # thrust.compiler_interface_cpp17
9
+ # thrust.compiler_interface_cppXX
12
10
# - Interface targets providing compiler-specific options that should only be
13
- # applied to certain dialects of C++.
11
+ # applied to certain dialects of C++. May not be defined for all dialects.
14
12
#
15
13
# thrust.promote_cudafe_warnings
16
14
# - Interface target that adds warning promotion for NVCC cudafe invocations.
@@ -175,7 +173,6 @@ function(thrust_build_compiler_targets)
175
173
# These targets are used for dialect-specific options:
176
174
add_library (thrust.compiler_interface_cpp11 INTERFACE )
177
175
add_library (thrust.compiler_interface_cpp14 INTERFACE )
178
- add_library (thrust.compiler_interface_cpp17 INTERFACE )
179
176
180
177
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" )
181
178
# C4127: conditional expression is constant
Original file line number Diff line number Diff line change @@ -163,9 +163,15 @@ function(_thrust_add_target_to_target_list target_name host device dialect prefi
163
163
164
164
target_link_libraries (${target_name} INTERFACE
165
165
thrust.compiler_interface
166
- thrust.compiler_interface_cpp${dialect}
167
166
)
168
167
168
+ # dialect-specific interface:
169
+ if (TARGET thrust.compiler_interface_cpp${dialect} )
170
+ target_link_libraries (${target_name} INTERFACE
171
+ thrust.compiler_interface_cpp${dialect}
172
+ )
173
+ endif ()
174
+
169
175
# Workaround Github issue #1174. cudafe promote TBB header warnings to
170
176
# errors, even when they're -isystem includes.
171
177
if ((NOT host STREQUAL "TBB" ) OR (NOT device STREQUAL "CUDA" ))
Original file line number Diff line number Diff line change @@ -236,11 +236,12 @@ if (WIN32 AND MSVC)
236
236
set (COMPILER_PREFIX "vc11" )
237
237
elseif (MSVC_VERSION EQUAL 1800)
238
238
set (COMPILER_PREFIX "vc12" )
239
- elseif (MSVC_VERSION GREATER_EQUAL 1900 AND MSVC_VERSION LESS_EQUAL 1929 )
239
+ elseif (MSVC_VERSION GREATER_EQUAL 1900 AND MSVC_VERSION LESS_EQUAL 1939 )
240
240
# 1900-1925 actually spans three Visual Studio versions:
241
241
# 1900 = VS 14.0 (v140 toolset) a.k.a. MSVC 2015
242
242
# 1910-1919 = VS 15.0 (v141 toolset) a.k.a. MSVC 2017
243
243
# 1920-1929 = VS 16.0 (v142 toolset) a.k.a. MSVC 2019
244
+ # 1930-1939 = VS 17.0 (v143 toolset) a.k.a. MSVC 2022
244
245
#
245
246
# But these are binary compatible and TBB's open source distribution only
246
247
# ships a single vs14 lib (as of 2020.0)
You can’t perform that action at this time.
0 commit comments