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:
jbeder
2009-10-25 18:01:48 +00:00
parent 770466d5d4
commit 52e3e0a4aa
2 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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}