mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Updated the CMake globbing so it only compiles sources starting with a lowercase letter (apparently Mac OS auto-generates files looking like ._whatever and it was trying to compile those too)
This commit is contained in:
@@ -38,9 +38,9 @@ set(_INSTALL_DESTINATIONS
|
|||||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||||
)
|
)
|
||||||
#
|
#
|
||||||
file(GLOB public_headers include/*.h)
|
file(GLOB public_headers include/[a-z]*.h)
|
||||||
file(GLOB private_headers src/*.h)
|
file(GLOB private_headers src/[a-z]*.h)
|
||||||
file(GLOB sources src/*.cpp)
|
file(GLOB sources src/[a-z]*.cpp)
|
||||||
|
|
||||||
include_directories(${YAML_CPP_SOURCE_DIR}/include)
|
include_directories(${YAML_CPP_SOURCE_DIR}/include)
|
||||||
add_library(yaml-cpp
|
add_library(yaml-cpp
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
file(GLOB yaml-reader_headers *.h)
|
file(GLOB yaml-reader_headers [a-z]*.h)
|
||||||
file(GLOB yaml-reader_sources *.cpp)
|
file(GLOB yaml-reader_sources [a-z]*.cpp)
|
||||||
|
|
||||||
add_executable(yaml-reader
|
add_executable(yaml-reader
|
||||||
${yaml-reader_sources}
|
${yaml-reader_sources}
|
||||||
|
Reference in New Issue
Block a user