Lines 1-16
Link Here
|
1 |
--- Libraries/cmake/External_CMinpack.cmake.orig 2017-01-08 05:14:57 UTC |
|
|
2 |
+++ Libraries/cmake/External_CMinpack.cmake |
3 |
@@ -1,3 +1,6 @@ |
4 |
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lm -fPIC") |
5 |
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -lm -fPIC") |
6 |
+ |
7 |
ExternalProject_Add( CMINPACK |
8 |
URL ${CMAKE_CURRENT_SOURCE_DIR}/cminpack-1.3.3.tar.gz |
9 |
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> |
10 |
@@ -8,4 +11,4 @@ ExternalProject_Add( CMINPACK |
11 |
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} |
12 |
) |
13 |
ExternalProject_Get_Property( CMINPACK BINARY_DIR INSTALL_DIR ) |
14 |
-SET( CMINPACK_INSTALL_DIR ${INSTALL_DIR} ) |
15 |
\ No newline at end of file |
16 |
+SET( CMINPACK_INSTALL_DIR ${INSTALL_DIR} ) |