Merge pull request #80 from jansol/submodule-fix

Fix building as a git submodule.
This commit is contained in:
Alberto Demichelis 2017-03-14 18:58:17 +08:00 committed by GitHub
commit 6186e02a23

View File

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