stogo/global.cc stogo/linalg.cc stogo/local.cc stogo/stogo.cc stogo/tools.cc stogo/global.h stogo/linalg.h stogo/local.h stogo/stogo_config.h stogo/stogo.h stogo/tools.h \r
)\r
\r
-OPTION(NLOPT_BUILD_SHARED "Build NLOPT as a shared library" OFF )\r
+OPTION(BUILD_SHARED_LIBS "Build NLOPT as a shared library" OFF )\r
\r
-IF(NLOPT_BUILD_SHARED)\r
+IF(BUILD_SHARED_LIBS)\r
ADD_DEFINITIONS(-DNLOPT_DLL)\r
ADD_DEFINITIONS(-DNLOPT_DLL_EXPORT )\r
- ADD_LIBRARY (nlopt SHARED ${NLOPT_SOURCES} )\r
-ELSE(NLOPT_BUILD_SHARED)\r
- ADD_LIBRARY (nlopt STATIC ${NLOPT_SOURCES} )\r
-ENDIF(NLOPT_BUILD_SHARED)\r
-\r
-\r
+ENDIF(BUILD_SHARED_LIBS)\r
\r
+ADD_LIBRARY (nlopt ${NLOPT_SOURCES} )\r
+
\ No newline at end of file