0191c85
Index: fltk-1.3.5/CMake/macros.cmake
0191c85
===================================================================
0191c85
--- fltk-1.3.5.orig/CMake/macros.cmake
0191c85
+++ fltk-1.3.5/CMake/macros.cmake
0191c85
@@ -38,7 +38,7 @@ macro(FL_ADD_LIBRARY LIBNAME LIBTYPE LIB
0191c85
 
0191c85
     set_target_properties(${LIBRARY_NAME}
0191c85
         PROPERTIES
0191c85
-        OUTPUT_NAME ${LIBRARY_NAME}
0191c85
+        OUTPUT_NAME ${LIBNAME}
0191c85
         DEBUG_OUTPUT_NAME ${LIBRARY_NAME_DEBUG}
0191c85
         CLEAN_DIRECT_OUTPUT TRUE
0191c85
         COMPILE_DEFINITIONS "FL_LIBRARY"
0191c85
Index: fltk-1.3.5/CMake/setup.cmake
0191c85
===================================================================
0191c85
--- fltk-1.3.5.orig/CMake/setup.cmake
0191c85
+++ fltk-1.3.5/CMake/setup.cmake
0191c85
@@ -85,7 +85,7 @@ if(WIN32 AND NOT CYGWIN)
0191c85
 elseif(APPLE AND NOT OPTION_APPLE_X11)
0191c85
    set(FLTK_CONFIG_PATH FLTK/.framework/Resources/CMake)
0191c85
 else()
0191c85
-   set(FLTK_CONFIG_PATH ${FLTK_DATADIR}/fltk)
0191c85
+   set(FLTK_CONFIG_PATH ${FLTK_DATADIR}/fltk CACHE FILEPATH "Install location for cmake files.")
0191c85
 endif(WIN32 AND NOT CYGWIN)
0191c85
 
0191c85
 include(TestBigEndian)