mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:05:48 +00:00
[CMAKE] Only link msvcrtex to win32cui, win32gui, win32dll, win32ocx and cpl modules
This commit is contained in:
parent
840fe4d6ac
commit
5c25e816bf
1 changed files with 2 additions and 1 deletions
|
@ -533,7 +533,8 @@ function(add_importlibs _module)
|
|||
foreach(LIB ${ARGN})
|
||||
if("${LIB}" MATCHES "msvcrt")
|
||||
target_compile_definitions(${_module} PRIVATE _DLL __USE_CRTIMP)
|
||||
target_link_libraries(${_module} msvcrtex)
|
||||
# set_module_type might not have been called at this point, so use a generator expression
|
||||
target_link_libraries(${_module} "$<$<IN_LIST:$<TARGET_PROPERTY:${_module},REACTOS_MODULE_TYPE>,win32gui;win32cui;win32dll;win32ocx;cpl>:msvcrtex>")
|
||||
endif()
|
||||
target_link_libraries(${_module} lib${LIB})
|
||||
add_dependencies(${_module} lib${LIB})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue