Skip to content

Commit

Permalink
cmake flag for conda
Browse files Browse the repository at this point in the history
  • Loading branch information
pirovc committed Jul 12, 2019
1 parent 1acf9a8 commit 09bd854
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ before_install:

script:
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DVERBOSE_CONFIG=ON -DGANON_OFFSET=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DVERBOSE_CONFIG=ON -DGANON_OFFSET=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCONDA=OFF ..
- cat compile_commands.json
- cmake --build . -- -j2
- ctest -VV .
Expand Down
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ endif()

option( VERBOSE_CONFIG "Verbose mode for quick build setup debugging" OFF )
option( GANON_OFFSET "Enable offset for ganon-classify" OFF )
option( CONDA "Flag for compilation in conda env." OFF )
option( INCLUDE_DIRS "Include directories to look for libraries" "" )

# -----------------------------------------------------------------------------
Expand Down Expand Up @@ -76,7 +77,9 @@ endif()

# seqan specific flags:

add_compile_options( -static -march=native )
if ( NOT CONDA )
add_compile_options( -static -march=native )
endif()

# Enable offset:

Expand Down Expand Up @@ -145,8 +148,6 @@ if( VERBOSE_CONFIG )
message( STATUS " Build type : ${CMAKE_BUILD_TYPE}" )
message( STATUS " CMAKE_CXX_FLAGS : ${CMAKE_CXX_FLAGS}" )
message( STATUS " INCLUDE_DIRS : ${INCLUDE_DIRS}" )
cmake_host_system_information(RESULT HAS_SSE42 QUERY HAS_SSE2)
message( STATUS " HAS_SSE42 : ${HAS_SSE42}" )
get_directory_property( dirCompileOptions COMPILE_OPTIONS )
message( STATUS " COMPILE_OPTIONS : ${dirCompileOptions}" )
endif()
Expand Down

0 comments on commit 09bd854

Please sign in to comment.