diff --git a/CMakeLists.txt b/CMakeLists.txt index 584f02a..6247593 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,6 +48,8 @@ set(CMAKE_VISIBILITY_INLINES_HIDDEN 1) # to distinguish between debug and release lib set(CMAKE_DEBUG_POSTFIX "d") +set(TARGETS_EXPORT_NAME "${CMAKE_PROJECT_NAME}Targets") + add_library(tinyxml2 tinyxml2.cpp tinyxml2.h) set_target_properties(tinyxml2 PROPERTIES @@ -73,8 +75,6 @@ else() endif(MSVC) endif() -set(TARGETS_EXPORT_NAME "${CMAKE_PROJECT_NAME}Targets") - # Export cmake script that can be used by downstream project # via `include()` export(TARGETS tinyxml2