From fcf77d7e07c357c73d44d7a3ccca4eae9e9d0bd8 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sat, 6 Jul 2019 21:49:43 +0200 Subject: [PATCH] Fixed CMake for windows --- native/CMakeLists.txt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/native/CMakeLists.txt b/native/CMakeLists.txt index c914766..709a0a0 100644 --- a/native/CMakeLists.txt +++ b/native/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_VERBOSE_MAKEFILE ON) if(CMAKE_PLATFORM_INCLUDE AND NOT CMAKE_PLATFORM_INCLUDE STREQUAL "") message("Include file ${CMAKE_PLATFORM_INCLUDE}") - include(${CMAKE_PLATFORM_INCLUDE}) + include("${CMAKE_PLATFORM_INCLUDE}") endif() message("Library path: ${LIBRARY_PATH}") message("Module path: ${CMAKE_MODULE_PATH}") @@ -128,12 +128,6 @@ else() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -static-libgcc -static-libstdc++") endif() -if(WIN32) - # Addd the module path - include(${CMAKE_MODULE_PATH}/libraries_wolverin_lap.cmake) - set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_SOURCE_DIR}/cmake/") -endif() - setup_nodejs() if(NOT NODEJS_INCLUDE_DIRS OR NODEJS_INCLUDE_DIRS STREQUAL "") message(FATAL_ERROR "Failed to find node headers") @@ -163,4 +157,4 @@ build_connection() function(build_crash_handler) add_subdirectory(crash_handler) endfunction() -build_crash_handler() \ No newline at end of file +build_crash_handler()