Skip to content

Commit

Permalink
clean up cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
AndySomogyi committed Apr 29, 2014
1 parent 9a7455e commit aba36b2
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ endif(BUILD_LEGACY_C)
# We alway have to build the roadrunner core, everything depends on this
add_subdirectory(source)

# install the rr_support if building legacy c
if(BUILD_LEGACY_C)
add_subdirectory(rr_support)
endif(BUILD_LEGACY_C)

if(INSTALL_CXX_API)
if(INSTALL_APPS)
add_subdirectory(apps)
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.0
1.2.0-beta2
16 changes: 16 additions & 0 deletions cmake/FindLLVM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,22 @@ if (LLVM_CONFIG_EXECUTABLE)
STRING(REPLACE "-Wcast-qual" "" LLVM_DEFINITIONS ${LLVM_DEFINITIONS})
STRING(REPLACE "-Woverloaded-virtual" "" LLVM_DEFINITIONS ${LLVM_DEFINITIONS})

# some LLVMs add these options
# -Wall -W -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -pedantic
# -Wno-long-long -Wno-uninitialized -Wnon-virtual-dtor


STRING(REPLACE "-Wall" "" LLVM_DEFINITIONS ${LLVM_DEFINITIONS})
STRING(REPLACE "-W " "" LLVM_DEFINITIONS ${LLVM_DEFINITIONS})
STRING(REPLACE "-Wno-unused-parameter" "" LLVM_DEFINITIONS ${LLVM_DEFINITIONS})
STRING(REPLACE "-Wwrite-strings" "" LLVM_DEFINITIONS ${LLVM_DEFINITIONS})
STRING(REPLACE "-Wno-missing-field-initializers" "" LLVM_DEFINITIONS ${LLVM_DEFINITIONS})
STRING(REPLACE "-pedantic" "" LLVM_DEFINITIONS ${LLVM_DEFINITIONS})
STRING(REPLACE "-Wno-long-long" "" LLVM_DEFINITIONS ${LLVM_DEFINITIONS})
STRING(REPLACE "-Wno-uninitialized" "" LLVM_DEFINITIONS ${LLVM_DEFINITIONS})
STRING(REPLACE "-Wnon-virtual-dtor" "" LLVM_DEFINITIONS ${LLVM_DEFINITIONS})


MESSAGE(STATUS "LLVM_DEFINITIONS: " ${LLVM_DEFINITIONS})


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion source/rrVersionInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace rr {
#define RR_VERSION_MAJOR 1
#define RR_VERSION_MINOR 2
#define RR_VERSION_PATCH 0
#define RR_VERSION_STR "1.2.0-beta1"
#define RR_VERSION_STR "1.2.0-beta2"

#define RR_STRINGIZE2(s) #s
#define RR_STRINGIZE(s) RR_STRINGIZE2(s)
Expand Down
2 changes: 1 addition & 1 deletion third_party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ add_subdirectory(nleq)
add_subdirectory(rr-libstruct)
add_subdirectory(unit_test)
add_subdirectory(poco_1.5.3)
add_subdirectory(rr_support)


if(WIN32)
add_subdirectory(compilers)
Expand Down

0 comments on commit aba36b2

Please sign in to comment.