CMake: Use wx_exe_link_libraries() to link sample libs
Fixes a recent regression and it should be used to enable monolithic build
This commit is contained in:
@@ -123,7 +123,7 @@ endif()
|
||||
wx_add_sample(sound RES sound.rc DATA 9000g.wav cuckoo.wav doggrowl.wav tinkalink2.wav LIBRARIES adv DEPENDS wxUSE_SOUND)
|
||||
wx_add_sample(splash DATA splash.png press.mpg LIBRARIES adv DEPENDS wxUSE_SPLASH)
|
||||
if(TARGET splash AND wxUSE_MEDIACTRL)
|
||||
target_link_libraries(splash media)
|
||||
wx_exe_link_libraries(splash media)
|
||||
endif()
|
||||
wx_add_sample(splitter DEPENDS wxUSE_SPLITTER)
|
||||
wx_add_sample(statbar DEPENDS wxUSE_STATUSBAR)
|
||||
|
Reference in New Issue
Block a user