CMake: Fix host strgen/settingsgen importing
This commit is contained in:
@@ -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
|
||||
|
@@ -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()
|
||||
|
@@ -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()
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user