Skip to content

Commit

Permalink
Fixing version and compile
Browse files Browse the repository at this point in the history
  • Loading branch information
msoos committed Nov 25, 2018
1 parent 7c0842b commit 93ace9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ endif()

if ((${CMAKE_SYSTEM_NAME} MATCHES "Linux") OR (${CMAKE_SYSTEM_NAME} MATCHES "Darwin"))
if(STATICCOMPILE)
set(BUILD_SHARED_LIBS OFF)
MESSAGE(STATUS "Compiling for static library use")
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static -Wl,--whole-archive -lpthread -Wl,--no-whole-archive -static ")
Expand Down Expand Up @@ -347,7 +348,7 @@ if (GIT_EXECUTABLE)
else()
set(GIT_SHA "GIT-hash-notfound")
endif()
set(APPROXMC_FULL_VERSION "3.0")
set(APPROXMC_FULL_VERSION "3.0.0")

string(REPLACE "." ";" APPROXMC_FULL_VERSION_LIST ${APPROXMC_FULL_VERSION})
SetVersionNumber("PROJECT" ${APPROXMC_FULL_VERSION_LIST})
Expand Down

0 comments on commit 93ace9b

Please sign in to comment.