Skip to content

Commit c2ffa5d

Browse files
Updating build configurations
1 parent 2ded3e3 commit c2ffa5d

File tree

3 files changed

+23
-33
lines changed

3 files changed

+23
-33
lines changed

.gitignore

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
1-
/build-linux64-server/
2-
/build-dockcross-win64/
1+
32
/.project
43
/.cproject
5-
/build-win64/
64
/.DS_Store
7-
/build-linux64/
8-
/build-macos/
95
/packages/
10-
/build_archive/
11-
/build-linux64-ubuntu/
6+
127
/conan/
138
/singularity/
14-
/cmake-build*
15-
/build*
16-
/debug-build*
179
/.idea/
18-
/nfsim/
19-
/all_solvers/*
2010

2111
.DS_Store
2212

23-
NFsim_v1.11/tests/smoke/SimID_273069657_0_.gdat
24-
NFsim_v1.11/tests/smoke/SimID_273069657_0_.species
25-
2613
*.ida
2714

2815
CMakeUserPresets.json
16+
17+
/build-linux64-server/
18+
/build-dockcross-win64/
19+
/build-win64/
20+
/build-linux64/
21+
/build-macos/
22+
/build_archive/
23+
/build-linux64-ubuntu/
24+
/build*
25+
/cmake-build*
26+
/debug-build*
2927
conan-build
3028
conan-build/*
3129
conan_provider.cmake

CMakeLists.txt

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if(POLICY CMP0057)
1919
cmake_policy(SET CMP0057 NEW)
2020
endif()
2121

22-
if (WINDOWS)
22+
if (WIN32)
2323
cmake_policy(SET CMP0091 NEW)
2424
endif ()
2525

@@ -89,7 +89,6 @@ endif()
8989

9090
option(OPTION_TARGET_MESSAGING "Messaging (requires libcurl)" off)
9191
option(OPTION_TARGET_DOCS "Generate Doxygen documentation" off)
92-
9392

9493
if (${OPTION_TARGET_DOCS})
9594
# if (DOXYGEN_FOUND AND ${CMAKE_VERSION} GREATER_EQUAL 3.9)
@@ -117,34 +116,27 @@ endif()
117116

118117
set(HDF5_BUILD_CPP_LIB OFF CACHE BOOL "" )
119118

120-
set(LINUX FALSE)
121-
if (${CMAKE_SYSTEM_NAME} MATCHES Linux)
122-
set(LINUX TRUE)
123-
endif()
124119

125-
set(WINDOWS FALSE)
126-
if (${CMAKE_SYSTEM_NAME} MATCHES Windows)
127-
set(WINDOWS TRUE)
128-
set(WIN32 TRUE)
129-
set(MINGW TRUE)
130-
endif()
120+
#if (WIN32) # Only linux is designed at this point to support messaging, but unix should work too (and our devs generally work on macs)
121+
# set(OPTION_TARGET_MESSAGING OFF)
122+
#endif()
131123

132124
set (ARCH_64bit FALSE)
133125
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
134126
set (ARCH_64bit TRUE)
135127
endif()
136128

137-
if (NOT APPLE AND NOT LINUX AND NOT WINDOWS)
129+
if (NOT APPLE AND NOT LINUX AND NOT WIN32)
138130
message(FATAL_ERROR "Unsupported Operating System")
139131
endif()
140132

141133
#---------------------------
142134
# IDE SUPPORT
143135
#---------------------------
144-
if (WINDOWS)
136+
if (WIN32)
145137
set(NETBEANS_WINDOWS TRUE)
146138
set(CMAKE_RC_FLAGS "-DGCC_WINDRES")
147-
endif(WINDOWS)
139+
endif(WIN32)
148140

149141
#add_definitions(-DFORTRAN_UNDERSCORE)
150142

@@ -220,7 +212,7 @@ if (OPTION_EXTRA_CONFIG_INFO)
220212
include(CMakePrintHelpers)
221213
cmake_print_variables(OPTION_TARGET_MESSAGING OPTION_TARGET_DOCS)
222214
cmake_print_variables(CMAKE_CXX_FLAGS CMAKE_C_FLAGS)
223-
cmake_print_variables(CMAKE_SYSTEM_NAME WINDOWS WIN32 MINGW APPLE ARCH_64bit ARCH_32bit)
215+
cmake_print_variables(CMAKE_SYSTEM_NAME WIN32 APPLE LINUX ARCH_64bit ARCH_32bit)
224216
cmake_print_variables(CMAKE_CPP_COMPILER CMAKE_C_COMPILER CMAKE_CXX_COMPILER)
225217
endif ()
226218

VCellMessaging/include/VCELL/CurlProxyClasses.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
#ifndef VCELL_ODE_NUMERICS_CURLPROXY_H
55
#define VCELL_ODE_NUMERICS_CURLPROXY_H
66
#include <string>
7-
#include <curl/curl.h>
8-
97
#include "VCELL/WorkerEvent.h"
108

119

@@ -26,6 +24,8 @@ class NullCurlProxy final : public AbstractCurlProxy {
2624
};
2725

2826
#ifdef USE_MESSAGING
27+
#include <curl/curl.h>
28+
2929
class CurlProxy final : public AbstractCurlProxy {
3030
public:
3131
CurlProxy(long simKey, int taskID, int jobIndex, const std::string& vcusername, const std::string& broker, int ttlLow, int ttlHigh);

0 commit comments

Comments
 (0)