Skip to content

Commit 739d0c9

Browse files
committed
try_run does not work during cross-compilation
1 parent a0be802 commit 739d0c9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CMakeLists.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,9 @@ if(USE_SYSTEM_LIBAPPIMAGE)
4949
endif()
5050

5151
# this dependency does not come with a pkg-config file or CMake config, so we try to compile a file instead
52-
try_run(ARGAGG_WORKS HAVE_ARGAGG "${PROJECT_BINARY_DIR}/tests" "${PROJECT_SOURCE_DIR}/cmake/tests/try_argagg.cpp")
52+
try_compile(HAVE_ARGAGG "${PROJECT_BINARY_DIR}/tests" "${PROJECT_SOURCE_DIR}/cmake/tests/try_argagg.cpp")
5353
if(NOT HAVE_ARGAGG)
5454
message(FATAL_ERROR "argagg header not found on system, please install")
55-
elseif(ARGAGG_WORKS)
56-
message(FATAL_ERROR "argagg does not seem to work")
5755
endif()
5856

5957
# include external libraries

0 commit comments

Comments
 (0)