summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2016-05-12 22:47:38 (GMT)
committerStefan Radomski <github@mintwerk.de>2016-05-12 22:47:38 (GMT)
commit280b5072b35cb9658ad4e6be0203a587c0593b1c (patch)
treeabfb59100608dba6df017d3ed52cde3bdf471b74 /contrib
parent11e7301fb1f86a35e35072c8e4753095d28dc43c (diff)
downloaduscxml-280b5072b35cb9658ad4e6be0203a587c0593b1c.zip
uscxml-280b5072b35cb9658ad4e6be0203a587c0593b1c.tar.gz
uscxml-280b5072b35cb9658ad4e6be0203a587c0593b1c.tar.bz2
Conditionalized V8 on version and used C++11 list initializers
Diffstat (limited to 'contrib')
-rw-r--r--contrib/cmake/FindV8.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/cmake/FindV8.cmake b/contrib/cmake/FindV8.cmake
index e3ec38c..725d9d1 100644
--- a/contrib/cmake/FindV8.cmake
+++ b/contrib/cmake/FindV8.cmake
@@ -55,11 +55,11 @@ include(CheckCXXSourceCompiles)
set(CMAKE_REQUIRED_INCLUDES ${V8_INCLUDE_DIR})
set(CMAKE_REQUIRED_LIBRARIES ${V8_LIBRARY})
check_cxx_source_compiles("
- #include <v8>
- int main(){ v8::Array::New(v8::Isolate::GetCurrent()); }
-" V8_VER_AFTER_032318)
+ #include <v8.h>
+ int main(){ v8::Local<v8::Value> foo = v8::Array::New(v8::Isolate::GetCurrent()); }
+" V8_VER_GREATER_032317)
-if (NOT V8_VER_AFTER_032318)
+if (NOT V8_VER_GREATER_032317)
message(STATUS "Your V8 installation is too old - we need >= 3.23.17")
unset(V8_LIBRARY)
unset(V8_INCLUDE_DIR)