diff --git a/CMakeLists.txt b/CMakeLists.txt index 50cbd30..694ca86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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