We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2c9dac commit e04bbfeCopy full SHA for e04bbfe
examples/CMakeLists.txt
@@ -52,7 +52,7 @@ find_package(JPEG)
52
if (JPEG_FOUND)
53
add_definitions(-DHAVE_LIBJPEG=1)
54
55
- include(${CMAKE_ROOT}/Modules/CheckCXXSourceCompiles.cmake)
+ include(CheckCXXSourceCompiles)
56
57
# this is needed for CheckCXXSourceCompiles
58
set(CMAKE_REQUIRED_LIBRARIES ${JPEG_LIBRARIES})
@@ -67,6 +67,9 @@ int main() {
67
return 0;
68
}
69
" HAVE_JPEG_WRITE_ICC_PROFILE)
70
+ unset(CMAKE_REQUIRED_LIBRARIES)
71
+ unset(CMAKE_REQUIRED_INCLUDES)
72
+
73
if (HAVE_JPEG_WRITE_ICC_PROFILE)
74
add_definitions(-DHAVE_JPEG_WRITE_ICC_PROFILE=1)
75
endif ()
0 commit comments