Is there any way to add IF ELSE ENDIF between ExternalProject_Add lines?
For example
ExternalProject_Add(my_lib
    URL "https://github.com/nlohmann/json/archive/refs/tags/v3.11.2.zip"
    CMAKE_ARGS
        -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
        -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
IF(WIN32)
        # Some Commands Here #
ELSE()
        # Another Some Commands Here #
ENDIF(WIN32)
)
You see some errors because of above lines.
Or I must create different commands for each of my conditions?
 
     
    