added dependencies to CMakeList.txt to prevent race-conditions in from source builds
added dependencies to CMakeList.txt to prevent race-conditions in from source builds