Skip to content

Commit

Permalink
fixup stdfilesystem nhvpc
Browse files Browse the repository at this point in the history
  • Loading branch information
ptheywood committed Jan 8, 2024
1 parent 0389460 commit 2dcc513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ target_link_libraries(${PROJECT_NAME} PUBLIC Jitify::jitify)
target_compile_definitions(${PROJECT_NAME} PUBLIC "JITIFY_PRINT_LOG")

# If gcc < 9, needs to link against stdc++fs. If using NVHPC,this is required if the underlying toolchain is also < 9. @todo - need to detect gcc version when nvhpc is the host compiler somehow...
if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0) OR OR (CMAKE_CXX_COMPILER_ID STREQUAL "NVHPC"))
if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0) OR (CMAKE_CXX_COMPILER_ID STREQUAL "NVHPC"))
target_link_libraries(${PROJECT_NAME} PUBLIC stdc++fs)
endif()

Expand Down

0 comments on commit 2dcc513

Please sign in to comment.