Skip to content

Commit

Permalink
Fix for cmake 2.8.11
Browse files Browse the repository at this point in the history
CMake Error in src/KDSoapClient/CMakeLists.txt:
  Target "kdsoap" INTERFACE_INCLUDE_DIRECTORIES property contains relative
  path: "include"
  • Loading branch information
dfaure-kdab committed Feb 20, 2020
1 parent 38c35f1 commit 2908173
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/KDSoapClient/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ set(SOURCES
add_library(kdsoap ${KDSoap_LIBRARY_MODE} ${SOURCES})
target_link_libraries(kdsoap ${QT_LIBRARIES})
set_target_properties(kdsoap PROPERTIES VERSION ${${PROJECT_NAME}_VERSION})
target_include_directories(kdsoap INTERFACE "$<INSTALL_INTERFACE:${INSTALL_INCLUDE_DIR}>")
target_include_directories(kdsoap INTERFACE "$<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/${INSTALL_INCLUDE_DIR}>")

# append d to debug libraries for windows builds
if(WIN32)
Expand Down
2 changes: 1 addition & 1 deletion src/KDSoapServer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ set_source_files_properties(KDSoapServerObjectInterface.cpp PROPERTIES SKIP_AUTO
add_library(kdsoap-server ${KDSoap_LIBRARY_MODE} ${SOURCES})
target_link_libraries(kdsoap-server kdsoap ${QT_LIBRARIES})
set_target_properties(kdsoap-server PROPERTIES VERSION ${${PROJECT_NAME}_VERSION})
target_include_directories(kdsoap-server INTERFACE "$<INSTALL_INTERFACE:${INSTALL_INCLUDE_DIR}>")
target_include_directories(kdsoap-server INTERFACE "$<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/${INSTALL_INCLUDE_DIR}>")

# append d to debug libraries for windows builds
if(WIN32)
Expand Down

0 comments on commit 2908173

Please sign in to comment.