Skip to content

Commit 033dbad

Browse files
committed
Add debug info for find nodejs headers.
1 parent d5a5411 commit 033dbad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmake/FindNodeJS.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ if(NODEJS_INCLUDE_DIR)
171171
endforeach()
172172
endif()
173173

174-
message(STATUS "NodeJS include dir: ${NODEJS_INCLUDE_DIR}")
175-
176174
# TODO: Remove this workaround when NodeJS begins to distribute node as a shared library (maybe never?) with proper includes
177175
if(NOT NODEJS_INCLUDE_DIR)
178176
if(NOT NODEJS_VERSION)
@@ -200,6 +198,8 @@ if(NOT NODEJS_INCLUDE_DIR)
200198

201199
set(NODEJS_INCLUDE_PATHS ${NODEJS_OUTPUT_PATH})
202200

201+
execute_process(COMMAND ls -la ${NODEJS_INCLUDE_PATHS})
202+
203203
# Find NodeJS includes
204204
find_path(NODEJS_INCLUDE_DIR ${NODEJS_HEADERS}
205205
PATHS ${NODEJS_INCLUDE_PATHS}
@@ -208,6 +208,8 @@ if(NOT NODEJS_INCLUDE_DIR)
208208
)
209209
endif()
210210

211+
message(STATUS "NodeJS include dir: ${NODEJS_INCLUDE_DIR}")
212+
211213
if(NODEJS_INCLUDE_DIR)
212214
# Detect NodeJS V8 version
213215
find_file(NODEJS_V8_VERSION_FILE_PATH v8-version.h

0 commit comments

Comments
 (0)