vcpkg/ports/fltk/include.patch
ras0219 7938ab75c1
[fltk] Force static library due to global variables. Fix CMake Targets. (#12273)
* [fltk] Force static library due to global variables. Fix CMake Targets.

* [fltk] Add include directory to exported targets

* [fltk] Update ports/fltk/CONTROL

Co-authored-by: nicole mazzuca <mazzucan@outlook.com>

* Update ports/fltk/portfile.cmake

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>
2020-07-30 22:41:46 -07:00

14 lines
459 B
Diff

diff --git a/CMake/macros.cmake b/CMake/macros.cmake
index ca03371..bde2c7e 100644
--- a/CMake/macros.cmake
+++ b/CMake/macros.cmake
@@ -36,6 +36,8 @@ macro(FL_ADD_LIBRARY LIBNAME LIBTYPE LIBFILES)
add_library(${LIBRARY_NAME} ${LIBTYPE} ${LIBFILES})
+ target_include_directories(${LIBRARY_NAME} PUBLIC $<INSTALL_INTERFACE:include>)
+
set_target_properties(${LIBRARY_NAME}
PROPERTIES
OUTPUT_NAME ${LIBRARY_NAME}