Use correct functions in maxutils CMake files
The headers and the static library were installed unconditionally.
This commit is contained in:
@ -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()
|
||||||
|
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user