mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
7938ab75c1
* [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>
14 lines
459 B
Diff
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}
|