Fixed misunderstanding of some CMake stuff.