diff options
author | Stefan Radomski <github@mintwerk.de> | 2016-05-12 22:47:38 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2016-05-12 22:47:38 (GMT) |
commit | 280b5072b35cb9658ad4e6be0203a587c0593b1c (patch) | |
tree | abfb59100608dba6df017d3ed52cde3bdf471b74 /contrib/cmake | |
parent | 11e7301fb1f86a35e35072c8e4753095d28dc43c (diff) | |
download | uscxml-280b5072b35cb9658ad4e6be0203a587c0593b1c.zip uscxml-280b5072b35cb9658ad4e6be0203a587c0593b1c.tar.gz uscxml-280b5072b35cb9658ad4e6be0203a587c0593b1c.tar.bz2 |
Conditionalized V8 on version and used C++11 list initializers
Diffstat (limited to 'contrib/cmake')
-rw-r--r-- | contrib/cmake/FindV8.cmake | 8 |
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) |