Skip to content

Commit

Permalink
build CHANGE move CMake's module searching for PCRE
Browse files Browse the repository at this point in the history
Due to a collision with cmake's cclean target, move our cmake module
searching for PCRE library into a better location (CMakeModules) and
add an exception for this location into the cclean target
  • Loading branch information
rkrejci committed Sep 1, 2015
1 parent 14f77e7 commit 977c1c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION})

# include custom Modules
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/")

# check the supported platform
if(NOT UNIX)
Expand Down Expand Up @@ -85,7 +85,7 @@ configure_file(Doxyfile.in Doxyfile)
# clean cmake cache
add_custom_target(cclean
COMMAND make clean
COMMAND find . -iname '*cmake*' -not -name CMakeLists.txt -exec rm -rf {} +
COMMAND find . -iname '*cmake*' -not -name CMakeLists.txt -not -path './CMakeModules*' -exec rm -rf {} +
COMMAND rm -rf Makefile Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})

Expand Down
File renamed without changes.

0 comments on commit 977c1c8

Please sign in to comment.