Fix building as a git submodule.
CMAKE_SOURCE_DIR points at the root project's source dir, which is wrong when building squirrel as a git submodule. CMAKE_CURRENT_SOURCE_DIR points at the dir of the current CMakeLists.txt and thus should be used most of the time.
This commit is contained in:
parent
05dbbc1820
commit
bdcb7cc12b
@ -9,7 +9,7 @@ set(CMAKE_BUILD_TYPE "Release" CACHE STRING "")
|
||||
|
||||
project(squirrel C CXX)
|
||||
|
||||
include_directories(${CMAKE_SOURCE_DIR}/include)
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||
set(SQ_FLAGS -fno-exceptions -fno-strict-aliasing -Wall -Wextra -pedantic -Wcast-qual)
|
||||
|
Loading…
x
Reference in New Issue
Block a user