vcpkg/ports/jasper/no_stdc_check.patch

26 lines
986 B
Diff
Raw Normal View History

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 840908739..c485b830c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -414,7 +414,7 @@ if((DEFINED JAS_CROSSCOMPILING AND JAS_CROSSCOMPILING) OR
# will need to be set manually from the command line
# (e.g., using -DJAS_STDC_VERSION=YYYYMML) or by changing the line below.
set(JAS_STDC_VERSION "0L" CACHE INTERNAL "The value of __STDC_VERSION__.")
- if (JAS_STDC_VERSION STREQUAL "0L")
+ if (0)
message(FATAL_ERROR
"The value of __STDC_VERSION__ cannot be automatically determined "
"when cross-compiling. Please set JAS_STDC_VERSION to the value "
@@ -423,8 +423,9 @@ if((DEFINED JAS_CROSSCOMPILING AND JAS_CROSSCOMPILING) OR
"appropriately.")
endif()
else()
- jas_get_stdc_version(status JAS_STDC_VERSION)
- if(NOT status)
+ #jas_get_stdc_version(status JAS_STDC_VERSION)
+ set(JAS_STDC_VERSION 0L)
+ if(0)
message(FATAL_ERROR "Cannot determine the value of __STDC_VERSION__.")
endif()
endif()