Skip to content

Commit

Permalink
Fix build error for non-Windows systems
Browse files Browse the repository at this point in the history
  • Loading branch information
schmoelder committed Feb 17, 2023
1 parent bee06f6 commit 8fd1f23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ endforeach()
# ---------------------------------------------------


add_executable(testCAPIv1 "${CMAKE_CURRENT_BINARY_DIR}/Paths_$<CONFIG>.cpp" testCAPIv1.cpp)
target_include_directories(testCAPIv1 PRIVATE ${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/ThirdParty/json)
if(WIN32)
add_executable(testCAPIv1 "${CMAKE_CURRENT_BINARY_DIR}/Paths_$<CONFIG>.cpp" testCAPIv1.cpp)
target_include_directories(testCAPIv1 PRIVATE ${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/ThirdParty/json)
endif()

# ---------------------------------------------------

Expand Down

0 comments on commit 8fd1f23

Please sign in to comment.