CMake: Allow to use wxLIB_TARGETS in install.cmake

Move include of install.cmake below library inclusions, so wxLIB_TARGETS will
be filled with all the built libraries once install.cmake is executed.
This commit is contained in:
Maarten Bent 2022-06-18 15:43:23 +02:00
parent 9ffe6f5575
commit ef29f744bf

View file

@ -15,7 +15,6 @@ include(build/cmake/functions.cmake) # wxWidgets functions
include(build/cmake/toolkit.cmake) # Platform/toolkit settings
include(build/cmake/options.cmake) # User options
include(build/cmake/init.cmake) # Init various global build vars
include(build/cmake/install.cmake) # Install target support
include(build/cmake/pch.cmake) # Precompiled header support
add_subdirectory(build/cmake/lib libs)
@ -52,6 +51,9 @@ if(NOT MSVC)
include(build/cmake/config.cmake)
endif()
# Install target support
include(build/cmake/install.cmake)
# Determine minimum required OS at runtime
set(wxREQUIRED_OS_DESC "${CMAKE_SYSTEM_NAME} ${CMAKE_SYSTEM_PROCESSOR}")
if(MSVC OR MINGW OR CYGWIN)