mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
CMake: Add /lib to include path.
This commit is contained in:
parent
01804a0b4b
commit
84808b68f1
1 changed files with 5 additions and 0 deletions
|
@ -1002,6 +1002,10 @@ target_sources(libgnu PRIVATE lib/getopt.in.h)
|
||||||
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/lib")
|
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/lib")
|
||||||
target_include_directories(libgnu PUBLIC "${CMAKE_CURRENT_BINARY_DIR}/lib")
|
target_include_directories(libgnu PUBLIC "${CMAKE_CURRENT_BINARY_DIR}/lib")
|
||||||
|
|
||||||
|
# Include /lib from the source directory. It does no harm even if none of
|
||||||
|
# the Gnulib replacements are used.
|
||||||
|
target_include_directories(libgnu PUBLIC lib)
|
||||||
|
|
||||||
# The command line tools need getopt_long in order to parse arguments. If
|
# The command line tools need getopt_long in order to parse arguments. If
|
||||||
# the system does not have a getopt_long implementation we can use the one
|
# the system does not have a getopt_long implementation we can use the one
|
||||||
# from Gnulib instead.
|
# from Gnulib instead.
|
||||||
|
@ -1036,6 +1040,7 @@ if(NOT HAVE_GETOPT_LONG)
|
||||||
lib/getopt-pfx-ext.h
|
lib/getopt-pfx-ext.h
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/lib/getopt.h"
|
"${CMAKE_CURRENT_BINARY_DIR}/lib/getopt.h"
|
||||||
)
|
)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue