Skip to content

Commit

Permalink
more concise unix target
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoPannetier committed Nov 10, 2023
1 parent ec24cfe commit 9d71cac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ add_subdirectory(src/RScore)
# add the executable
add_executable(RangeShifter src/Main.cpp src/BatchMode.cpp)

target_compile_definitions(RangeShifter PRIVATE RSDEBUG RSWIN64)

# enable LINUX_CLUSTER macro on Linux + macOS
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "Darwin")
target_compile_definitions(RangeShifter PRIVATE "RSDEBUG" "RSWIN64" "LINUX_CLUSTER")
else() # Windows
target_compile_definitions(RangeShifter PRIVATE "RSDEBUG" "RSWIN64")
add_compile_definitions("LINUX_CLUSTER")
endif()

# link RScore to the executable as a library
Expand Down

0 comments on commit 9d71cac

Please sign in to comment.