CMake: Use a macro to get the flavour

Also include the flavour in builtin target names and include path.
This commit is contained in:
Maarten Bent
2021-06-06 22:48:27 +02:00
parent 91884752c1
commit 3e0057757b
3 changed files with 21 additions and 13 deletions

View File

@@ -22,9 +22,10 @@ if(WIN32_MSVC_NAMING)
DESTINATION "include")
endif()
else()
wx_get_flavour(lib_flavour "-")
wx_install(
DIRECTORY "${wxSOURCE_DIR}/include/wx"
DESTINATION "include/wx-${wxMAJOR_VERSION}.${wxMINOR_VERSION}")
DESTINATION "include/wx-${wxMAJOR_VERSION}.${wxMINOR_VERSION}${lib_flavour}")
endif()
# setup header and wx-config