File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,13 @@ function (add_flangrt_library name)
37
37
"${multiValueArgs} "
38
38
${ARGN} )
39
39
40
+ if (ARG_INSTALL_WITH_TOOLCHAIN AND ARG_EXCLUDE_FROM_ALL )
41
+ message (SEND_ERROR "add_flangrt_library(${name} ...):
42
+ INSTALL_WITH_TOOLCHAIN and EXCLUDE_FROM_ALL are in conflict. When
43
+ installing an artifact it must have been built first in the 'all' target.
44
+ " )
45
+ endif ()
46
+
40
47
# Also add header files to IDEs to list as part of the library
41
48
set_source_files_properties (${ARG_ADDITIONAL_HEADERS} PROPERTIES HEADER_FILE_ONLY ON )
42
49
Original file line number Diff line number Diff line change @@ -151,7 +151,6 @@ else()
151
151
add_flangrt_library (${name} ${libtype}
152
152
${sources}
153
153
${ARGN}
154
- INSTALL_WITH_TOOLCHAIN
155
154
ADDITIONAL_HEADERS ${public_headers} ${private_headers}
156
155
)
157
156
@@ -168,8 +167,8 @@ else()
168
167
add_dependencies (flang_rt ${name} )
169
168
endfunction ()
170
169
171
- add_win_flangrt_library (STATIC static MultiThreaded )
172
- add_win_flangrt_library (STATIC static_dbg MultiThreadedDebug )
170
+ add_win_flangrt_library (STATIC static MultiThreaded INSTALL_WITH_TOOLCHAIN )
171
+ add_win_flangrt_library (STATIC static_dbg MultiThreadedDebug INSTALL_WITH_TOOLCHAIN )
173
172
174
173
# unittests link against LLVMSupport which is compiled with /MD
175
174
add_win_flangrt_library (STATIC unittest MultiThreadedDLL EXCLUDE_FROM_ALL )
You can’t perform that action at this time.
0 commit comments