Use correct functions in maxutils CMake files
The headers and the static library were installed unconditionally.
This commit is contained in:
parent
40a5ae81c7
commit
0685276764
@ -3,7 +3,7 @@ foreach(type ${TYPES})
|
||||
file(GLOB HEADERS ${type})
|
||||
foreach(var ${HEADERS})
|
||||
get_filename_component(header ${var} NAME)
|
||||
install(FILES ${header} DESTINATION include/maxbase)
|
||||
install_header(${header} devel)
|
||||
endforeach()
|
||||
endforeach()
|
||||
|
||||
|
@ -8,7 +8,6 @@ add_library(maxbase STATIC
|
||||
string.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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user