Skip to content

Commit

Permalink
attempt to fix C/C to build on older cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
vaintroub committed May 19, 2018
1 parent 184a16d commit cbc9a71
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ FUNCTION(REGISTER_PLUGIN)
set_target_properties(${CC_PLUGIN_TARGET} PROPERTIES PREFIX "")
set_target_properties(${CC_PLUGIN_TARGET} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CC_BINARY_DIR}/plugins/lib")
if (NOT "${CC_PLUGIN_INCLUDES}" STREQUAL "")
target_include_directories(${CC_PLUGIN_TARGET} PRIVATE ${CC_PLUGIN_INCLUDES})
if(CMAKE_VERSION VERSION_LESS 2.8.11)
include_directories(${CC_PLUGIN_INCLUDES})
else()
target_include_directories(${CC_PLUGIN_TARGET} PRIVATE ${CC_PLUGIN_INCLUDES})
endif()
endif()
if (${CC_TARGET_COMPILE_OPTIONS})
target_compile_options(${CC_PLUGIN_TARGET} ${CC_TARGET_COMPILE_OPTIONS})
Expand Down

0 comments on commit cbc9a71

Please sign in to comment.