Fixed CMake for windows
This commit is contained in:
parent
005c67bb51
commit
fcf77d7e07
@ -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()
|
||||
build_crash_handler()
|
||||
|
Loading…
Reference in New Issue
Block a user