diff --git a/CGALimageIO/src/CGALimageIO/CMakeLists.txt b/CGALimageIO/src/CGALimageIO/CMakeLists.txt index 4855eb77db8..d6e2678afd4 100644 --- a/CGALimageIO/src/CGALimageIO/CMakeLists.txt +++ b/CGALimageIO/src/CGALimageIO/CMakeLists.txt @@ -34,6 +34,7 @@ if(ZLIB_FOUND AND OPENGL_FOUND) include_directories( ${OPENGL_INCLUDE_DIR} ) add_library(CGAL_IMAGEIO all_files.cpp) + add_dependencies( CGAL_IMAGEIO CGAL ) target_link_libraries( CGAL_IMAGEIO ${ZLIB_LIBRARY})