CMake: Only link executables to enabled libraries
This commit is contained in:
@@ -13,7 +13,10 @@ if(wxUSE_XRC)
|
||||
if(wxBUILD_SHARED)
|
||||
target_compile_definitions(wxrc PRIVATE WXUSINGDLL)
|
||||
endif()
|
||||
wx_exe_link_libraries(wxrc xml base)
|
||||
if(wxUSE_XML)
|
||||
wx_exe_link_libraries(wxrc xml)
|
||||
endif()
|
||||
wx_exe_link_libraries(wxrc base)
|
||||
# TODO: install
|
||||
set_target_properties(wxrc PROPERTIES FOLDER "Utilities")
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user