Skip to content

Commit

Permalink
support INCLUDE_INSTALL_DIR too
Browse files Browse the repository at this point in the history
  • Loading branch information
Rex Dieter committed Nov 13, 2015
1 parent ea7828f commit d0abe84
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Expand Up @@ -147,6 +147,10 @@ if (NOT BIN_INSTALL_DIR)
set(BIN_INSTALL_DIR bin)
endif ()

if (NOT INCLUDE_INSTALL_DIR)
set(INCLUDE_INSTALL_DIR include)
endif ()

# Always build the STATIC library
set(name tidy-static)
add_library ( ${name} STATIC ${CFILES} ${HFILES} ${LIBHFILES} )
Expand All @@ -159,7 +163,7 @@ install(TARGETS ${name}
ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
)
install( FILES ${HFILES} DESTINATION include )
install( FILES ${HFILES} DESTINATION ${INCLUDE_INSTALL_DIR} )
########################################
# if user option still on
if (BUILD_SHARED_LIB)
Expand Down

0 comments on commit d0abe84

Please sign in to comment.