From 22410f46f5065cc7c729446983dc3845b944ef32 Mon Sep 17 00:00:00 2001 From: Jesse Beder Date: Sun, 25 Oct 2009 18:01:48 +0000 Subject: [PATCH] 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) --- CMakeLists.txt | 6 +++--- yaml-reader/CMakeLists.txt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 71b601e..440aa27 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,9 +38,9 @@ set(_INSTALL_DESTINATIONS ARCHIVE DESTINATION lib${LIB_SUFFIX} ) # -file(GLOB public_headers include/*.h) -file(GLOB private_headers src/*.h) -file(GLOB sources src/*.cpp) +file(GLOB public_headers include/[a-z]*.h) +file(GLOB private_headers src/[a-z]*.h) +file(GLOB sources src/[a-z]*.cpp) include_directories(${YAML_CPP_SOURCE_DIR}/include) add_library(yaml-cpp diff --git a/yaml-reader/CMakeLists.txt b/yaml-reader/CMakeLists.txt index f2c3ce2..2b58180 100644 --- a/yaml-reader/CMakeLists.txt +++ b/yaml-reader/CMakeLists.txt @@ -1,5 +1,5 @@ -file(GLOB yaml-reader_headers *.h) -file(GLOB yaml-reader_sources *.cpp) +file(GLOB yaml-reader_headers [a-z]*.h) +file(GLOB yaml-reader_sources [a-z]*.cpp) add_executable(yaml-reader ${yaml-reader_sources}