1 2 3 4 5 6 7 8 9
add_link_options( -nodefaultlibs -lc -lm ) if (APPLE) set(CMAKE_SHARED_LINKER_FLAGS "-undefined dynamic_lookup") endif()