CMake: Finding files requires reference to srcdir

This commit is contained in:
Daniel Molkentin 2012-09-26 11:29:55 +02:00
parent 73374cb810
commit 5adcc7d12f

View file

@ -4,10 +4,10 @@ project(mirall)
set(PACKAGE "mirall")
set( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
if ( EXISTS "OEM.cmake" )
include ( OEM.cmake )
if ( EXISTS ${CMAKE_SOURCE_DIR}/OEM.cmake )
include ( ${CMAKE_SOURCE_DIR}/OEM.cmake )
else ()
include ( OWNCLOUD.cmake )
include ( ${CMAKE_SOURCE_DIR}/OWNCLOUD.cmake )
endif()
include(${CMAKE_SOURCE_DIR}/VERSION.cmake)