Better CMake dependency handling
This commit is contained in:
parent
0a43715461
commit
532d3dcafb
|
@ -53,4 +53,11 @@ add_library(libjpeg-turbo
|
||||||
jidctflt.c
|
jidctflt.c
|
||||||
jaricom.c)
|
jaricom.c)
|
||||||
|
|
||||||
set(LIBJPEG_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "libjpeg-turbo include path" FORCE)
|
if (NOT MSVC)
|
||||||
|
target_compile_options(libjpeg-turbo PRIVATE -Wno-misleading-indentation
|
||||||
|
-Wno-unused-but-set-variable -Wno-unused-label
|
||||||
|
-Wno-implicit-fallthrough -Wno-attributes
|
||||||
|
-Wno-shift-negative-value)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
target_include_directories(libjpeg-turbo PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
Loading…
Reference in New Issue