mirror of
https://github.com/michaelrsweet/mxml.git
synced 2026-08-13 11:44:45 -04:00
Make sure 'config.h' doesn't stay in the public include DIR.
This commit is contained in:
parent
fe2d99b779
commit
257e1fefff
@ -43,7 +43,7 @@ endif()
|
||||
# For now assume inline on.
|
||||
option(inline "Enable inline function support." ON)
|
||||
|
||||
configure_file(cmakeconfig.h.in ${CMAKE_CURRENT_SOURCE_DIR}/config.h
|
||||
configure_file(cmakeconfig.h.in config.h
|
||||
@ONLY
|
||||
)
|
||||
|
||||
@ -64,9 +64,11 @@ set(MXML_PRIVATE
|
||||
set(MXML_PUBLIC
|
||||
mxml.h
|
||||
|
||||
config.h # TODO: Cmake configure.
|
||||
${CMAKE_CURRENT_BINARY_DIR}/config.h
|
||||
)
|
||||
|
||||
message(STATUS ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
set(MXML_COLLECTIVE
|
||||
${MXML_PRIVATE}
|
||||
${MXML_PUBLIC}
|
||||
@ -76,7 +78,10 @@ add_library(${PROJECT_NAME}
|
||||
${MXML_COLLECTIVE}
|
||||
)
|
||||
|
||||
# Dfine the header(s) for this library and add to build path.
|
||||
# For config.h
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
# Define the header(s) for this library and add to build path.
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/>
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user