Segfault when exporting an imported library
add_library(Dependencies::VEZ SHARED IMPORTED GLOBAL)
target_include_directories(Dependencies::VEZ INTERFACE ${CMAKE_CURRENT_BINARY_DIR}/v-ez/Source)
target_link_libraries(Dependencies::VEZ INTERFACE ${CMAKE_CURRENT_BINARY_DIR}/v-ez/Bin/x86_64/libVEZ.so)
export(TARGETS Dependencies::VEZ NAMESPACE Saga3D:: FILE VEZConfig.cmake)
When running cmake with above code, I get a Segmentation fault
output and my VEZConfig.cmake is empty.
Did I use export
command correctly?
Edited by Manh Nguyen Tien