Skip to content

Commit c71a3cc

Browse files
committed
remove node files from windows build
1 parent 59fe9d7 commit c71a3cc

File tree

1 file changed

+26
-12
lines changed

1 file changed

+26
-12
lines changed

CMakeLists.txt

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,33 @@ FetchContent_MakeAvailable(googletest)
6666
enable_testing()
6767
include(GoogleTest)
6868

69-
# Include the source files
70-
file(GLOB_RECURSE SOURCES
71-
${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp
72-
${CMAKE_CURRENT_SOURCE_DIR}/src/parser/*.cpp
73-
${CMAKE_CURRENT_SOURCE_DIR}/src/parser/node/*.cpp
74-
)
69+
if(MSVC)
70+
# Include the source files
71+
file(GLOB_RECURSE SOURCES
72+
${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp
73+
${CMAKE_CURRENT_SOURCE_DIR}/src/parser/*.cpp
74+
)
7575

76-
# Include the header files
77-
file(GLOB_RECURSE HEADERS
78-
${CMAKE_CURRENT_SOURCE_DIR}/include/*.hpp
79-
${CMAKE_CURRENT_SOURCE_DIR}/include/parser/*.hpp
80-
${CMAKE_CURRENT_SOURCE_DIR}/include/parser/node/*.hpp
81-
)
76+
# Include the header files
77+
file(GLOB_RECURSE HEADERS
78+
${CMAKE_CURRENT_SOURCE_DIR}/include/*.hpp
79+
${CMAKE_CURRENT_SOURCE_DIR}/include/parser/*.hpp
80+
)
81+
else()
82+
# Include the source files
83+
file(GLOB_RECURSE SOURCES
84+
${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp
85+
${CMAKE_CURRENT_SOURCE_DIR}/src/parser/*.cpp
86+
${CMAKE_CURRENT_SOURCE_DIR}/src/parser/node/*.cpp
87+
)
88+
89+
# Include the header files
90+
file(GLOB_RECURSE HEADERS
91+
${CMAKE_CURRENT_SOURCE_DIR}/include/*.hpp
92+
${CMAKE_CURRENT_SOURCE_DIR}/include/parser/*.hpp
93+
${CMAKE_CURRENT_SOURCE_DIR}/include/parser/node/*.hpp
94+
)
95+
endif()
8296

8397
# Include the Lexer
8498
if(MSVC)

0 commit comments

Comments
 (0)