Skip to content

Commit 5bf2b16

Browse files
committed
core_dump.cpp only shoudl compile on ubuntu and not on windows
1 parent b7bf0ff commit 5bf2b16

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,10 @@ target_link_libraries(asynchronous_programming -pthread)
291291

292292
add_executable(circular_dependency src/class/circular_dependency/circular_dependency.cpp src/class/circular_dependency/classA.cpp src/class/circular_dependency/classB.cpp)
293293

294-
add_executable(core_dump src/core_dump.cpp)
294+
# core_dump uses unistd.h which is only available on Unix-like systems
295+
if(UNIX)
296+
add_executable(core_dump src/core_dump.cpp)
297+
endif()
295298

296299
#add_executable(packaged_task src/packaged_task.cpp)
297300

0 commit comments

Comments
 (0)