I apparently fixed the problem by using add_dependencies() instead of target_link_libraries() ...<div><br></div><div>Klaim / Joel LamotteĀ </div>