[cmake] fix cross compilation
helper utilities are now compiled on host only
This commit is contained in:
parent
0f567c9ac5
commit
46bced61fb
@ -15,9 +15,16 @@
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
add_executable(sdl-common-res2bin
|
||||
convert_res_to_c.cpp
|
||||
)
|
||||
if(CMAKE_CROSSCOMPILING)
|
||||
find_package(SdlCommonRes2bin)
|
||||
else()
|
||||
add_executable(sdl-common-res2bin
|
||||
convert_res_to_c.cpp
|
||||
)
|
||||
export(TARGETS sdl-common-res2bin FILE
|
||||
"${CMAKE_BINARY_DIR}/SdlCommonRes2binConfig.cmake")
|
||||
endif()
|
||||
|
||||
|
||||
set(FACTORY_SRCS "")
|
||||
set(FACTORY_HDR "")
|
||||
|
@ -1,3 +1,9 @@
|
||||
add_executable(generate_argument_docbook
|
||||
generate_argument_docbook.c
|
||||
)
|
||||
if(CMAKE_CROSSCOMPILING)
|
||||
find_package(GenerateArgumentDocbook)
|
||||
else()
|
||||
add_executable(generate_argument_docbook
|
||||
generate_argument_docbook.c
|
||||
)
|
||||
export(TARGETS generate_argument_docbook FILE
|
||||
"${CMAKE_BINARY_DIR}/GenerateArgumentDocbookConfig.cmake")
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user