CMake: Fix host strgen/settingsgen importing

This commit is contained in:
Jonathan G Rennison
2021-03-04 18:50:29 +00:00
parent 92eb93561c
commit 70f3993a55
4 changed files with 2 additions and 4 deletions

View File

@@ -65,7 +65,6 @@ set(LANG_BINARY_DIR ${CMAKE_BINARY_DIR}/lang)
if (HOST_BINARY_DIR)
include(${HOST_BINARY_DIR}/strgen.cmake)
add_executable(hoststrgen ALIAS strgen)
endif()
# Walk over all the (finished) language files, and generate a command to compile them

View File

@@ -13,6 +13,6 @@ if (NOT HOST_BINARY_DIR)
add_definitions(-DSETTINGSGEN)
add_executable(settingsgen ${sourcefiles})
export(TARGETS settingsgen FILE ${CMAKE_BINARY_DIR}/settingsgen.cmake)
export(TARGETS settingsgen NAMESPACE host FILE ${CMAKE_BINARY_DIR}/settingsgen.cmake)
add_dependencies(tools settingsgen)
endif()

View File

@@ -18,7 +18,7 @@ if (NOT HOST_BINARY_DIR)
include(Endian)
add_endian_definition()
export(TARGETS strgen FILE ${CMAKE_BINARY_DIR}/strgen.cmake)
export(TARGETS strgen NAMESPACE host FILE ${CMAKE_BINARY_DIR}/strgen.cmake)
add_dependencies(tools strgen)
endif()

View File

@@ -13,7 +13,6 @@ set(TABLE_INI_SOURCE_FILES
if (HOST_BINARY_DIR)
include(${HOST_BINARY_DIR}/settingsgen.cmake)
add_executable(hostsettingsgen ALIAS settingsgen)
endif()
# Generate a command and target to create the settings table