cmake_policy(SET CMP0042 OLD)

add_library(foo SHARED empty.cpp)