提交 e0e50196 编写于 作者: M Markus Rickert

Add install include directories to target properties

上级 ec0816fe
...@@ -236,7 +236,7 @@ target_include_directories (${nlopt_lib} PRIVATE ...@@ -236,7 +236,7 @@ target_include_directories (${nlopt_lib} PRIVATE
api) api)
get_target_property (NLOPT_PRIVATE_INCLUDE_DIRS ${nlopt_lib} INCLUDE_DIRECTORIES) get_target_property (NLOPT_PRIVATE_INCLUDE_DIRS ${nlopt_lib} INCLUDE_DIRECTORIES)
target_include_directories (${nlopt_lib} INTERFACE "$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/api>") target_include_directories (${nlopt_lib} INTERFACE "$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/api>" "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
if (BUILD_SHARED_LIBS) if (BUILD_SHARED_LIBS)
target_compile_definitions (${nlopt_lib} PUBLIC -DNLOPT_DLL) target_compile_definitions (${nlopt_lib} PUBLIC -DNLOPT_DLL)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册