Use correct functions in maxutils CMake files

The headers and the static library were installed unconditionally.
This commit is contained in:
Markus Mäkelä
2018-08-17 23:09:37 +03:00
parent 40a5ae81c7
commit 0685276764
2 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,7 @@ foreach(type ${TYPES})
file(GLOB HEADERS ${type}) file(GLOB HEADERS ${type})
foreach(var ${HEADERS}) foreach(var ${HEADERS})
get_filename_component(header ${var} NAME) get_filename_component(header ${var} NAME)
install(FILES ${header} DESTINATION include/maxbase) install_header(${header} devel)
endforeach() endforeach()
endforeach() endforeach()

View File

@ -8,7 +8,6 @@ add_library(maxbase STATIC
string.cc string.cc
stacktrace.cc stacktrace.cc
) )
set_target_properties(maxbase PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs)
install(TARGETS maxbase DESTINATION lib)
set_target_properties(maxbase PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs)
add_subdirectory(test) add_subdirectory(test)