Skip to content

Commit

Permalink
Set openPMD.jl library target properties
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Aug 10, 2023
1 parent 100a586 commit 3b1b37c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,18 @@ if(openPMD_HAVE_JULIA)
)
openpmd_cxx_required(openPMD.jl)
target_link_libraries(openPMD.jl PRIVATE openPMD JlCxx::cxxwrap_julia JlCxx::cxxwrap_julia_stl)

set_target_properties(openPMD.jl PROPERTIES
COMPILE_PDB_NAME openPMD.jl
ARCHIVE_OUTPUT_DIRECTORY ${openPMD_ARCHIVE_OUTPUT_DIRECTORY}
LIBRARY_OUTPUT_DIRECTORY ${openPMD_LIBRARY_OUTPUT_DIRECTORY}
RUNTIME_OUTPUT_DIRECTORY ${openPMD_RUNTIME_OUTPUT_DIRECTORY}
PDB_OUTPUT_DIRECTORY ${openPMD_PDB_OUTPUT_DIRECTORY}
COMPILE_PDB_OUTPUT_DIRECTORY ${openPMD_COMPILE_PDB_OUTPUT_DIRECTORY}

POSITION_INDEPENDENT_CODE ON
WINDOWS_EXPORT_ALL_SYMBOLS ON
)
endif()

# python bindings
Expand Down

0 comments on commit 3b1b37c

Please sign in to comment.