Changeset 3054


Ignore:
Timestamp:
10/23/15 16:25:49 (9 years ago)
Author:
Kana Sugimoto
Message:

New Development: Yes

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: build asap using CMake

Put in Release Notes: No

Module(s): build of asap by CMake

Description: Committing the changes sent by Ville to support git migration


Location:
trunk
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r3053 r3054  
    683683# run chmod to make sure the script has executable
    684684#
    685 exec_program( chmod ARGS a+x ${ASAP_SOURCE_DIR}/getsvnrev.sh )
    686 exec_program( chmod ARGS a+x ${ASAP_SOURCE_DIR}/cmake/exec_getsvnrev.sh )
    687 exec_program( ${ASAP_SOURCE_DIR}/cmake/exec_getsvnrev.sh ARGS ${ASAP_SOURCE_DIR})
     685execute_process( COMMAND svn info
     686                   RESULT_VARIABLE SVNINFOSTATUS
     687                   WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
     688)
     689message("SVNINFOSTATUS: ${SVNINFOSTATUS}")
     690
     691if(${SVNINFOSTATUS} STREQUAL "0")
     692    message("Running svn scripts.")
     693    exec_program( chmod ARGS a+x ${ASAP_SOURCE_DIR}/getsvnrev.sh )
     694    exec_program( chmod ARGS a+x ${ASAP_SOURCE_DIR}/cmake/exec_getsvnrev.sh )
     695    exec_program( ${ASAP_SOURCE_DIR}/cmake/exec_getsvnrev.sh ARGS ${ASAP_SOURCE_DIR})
     696else ()
     697    message("Couldn't get svn info. Running git scripts.")
     698    exec_program( chmod ARGS a+x ${ASAP_SOURCE_DIR}/getgitrev.sh )
     699    exec_program( chmod ARGS a+x ${ASAP_SOURCE_DIR}/cmake/exec_getgitrev.sh )
     700    exec_program( ${ASAP_SOURCE_DIR}/cmake/exec_getgitrev.sh ARGS ${ASAP_SOURCE_DIR})
     701endif ()
    688702
    689703# Add the modules to be built.
Note: See TracChangeset for help on using the changeset viewer.