Specify C++17 support in cmake a different way
This commit is contained in:
parent
1e1a24b003
commit
c6249d96af
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ file(GLOB SOURCE_FILES "natives/*.cc" "natives/*.h")
|
||||||
add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES} ${CMAKE_JS_SRC})
|
add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES} ${CMAKE_JS_SRC})
|
||||||
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "" SUFFIX ".node")
|
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "" SUFFIX ".node")
|
||||||
target_link_libraries(${PROJECT_NAME} ${CMAKE_JS_LIB})
|
target_link_libraries(${PROJECT_NAME} ${CMAKE_JS_LIB})
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)
|
||||||
add_definitions(-DNAPI_CPP_EXCEPTIONS)
|
add_definitions(-DNAPI_CPP_EXCEPTIONS)
|
||||||
add_definitions(-DNAPI_VERSION=3)
|
add_definitions(-DNAPI_VERSION=3)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue