Skip to content

Commit

Permalink
use cmake option
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinstoecker committed Oct 22, 2024
1 parent 2c66278 commit fffff5a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ set(CMAKE_CUDA_STANDARD_REQUIRED ON)
option(WERROR "add -Werror option" "NO") # inactive per default
option(RAYX_ENABLE_CUDA "This option enables the search for CUDA. Project will be compiled without cuda if not found." ON)
option(RAYX_REQUIRE_CUDA "If option 'RAYX_ENABLE_CUDA' is ON, this option will add the requirement that cuda must be found." OFF)
option(RAYX_STATIC_LIB "Build static library" OFF)

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

Expand Down
1 change: 1 addition & 0 deletions Extern/NFD-Extended
Submodule NFD-Extended added at 17b6e8
2 changes: 1 addition & 1 deletion Intern/rayx-core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ file(GLOB_RECURSE ALPAKA_SOURCE
${PROJECT_SOURCE_DIR}/src/Tracer/*.cpp
)

if(STATIC_LIB STREQUAL "YES")
if(RAYX_STATIC_LIB)
add_library(${PROJECT_NAME} STATIC ${SOURCE})
set_target_properties(${PROJECT_NAME} PROPERTIES POSITION_INDEPENDENT_CODE ON)
else()
Expand Down

0 comments on commit fffff5a

Please sign in to comment.