Browse Source

Changing flags to definitions for better cross compatibility

submodule
Trevor Irons 6 years ago
parent
commit
5ba069a14c
2 changed files with 7 additions and 2 deletions
  1. 5
    2
      CMakeLists.txt
  2. 2
    0
      Modules/LemmaCore/include/LemmaCore

+ 5
- 2
CMakeLists.txt View File

167
 	if (VTK_FOUND)
167
 	if (VTK_FOUND)
168
 		message(STATUS "VTK 7 was found! ") 
168
 		message(STATUS "VTK 7 was found! ") 
169
 	        include(${VTK_USE_FILE}) 
169
 	        include(${VTK_USE_FILE}) 
170
+		#add_compile_options(-DLEMMAUSEVTK)
171
+		#target_compile_definitions( lemmacore PRIVATE LEMMAUSEVTK=1 )
172
+		add_definitions(-DLEMMAUSEVTK) 
170
 	else()
173
 	else()
171
 		ExternalProject_Add(VTK
174
 		ExternalProject_Add(VTK
172
   		GIT_REPOSITORY "https://gitlab.kitware.com/vtk/vtk.git"
175
   		GIT_REPOSITORY "https://gitlab.kitware.com/vtk/vtk.git"
213
 	  	    LOG_UPDATE 0
216
 	  	    LOG_UPDATE 0
214
 		)
217
 		)
215
 	endif()
218
 	endif()
216
-	add_compile_options(-DLEMMAUSEVTK) 
219
+	add_definitions(-DLEMMAUSEVTK) 
217
 endif()
220
 endif()
218
 
221
 
219
 #######################
222
 #######################
225
 #############################
228
 #############################
226
 FIND_LIBRARY( KIHA_EM1D kihaem1d ) 
229
 FIND_LIBRARY( KIHA_EM1D kihaem1d ) 
227
 if ( KIHA_EM1D )
230
 if ( KIHA_EM1D )
228
-	add_compile_options(-DKIHALEE_EM1D)
231
+	add_definitions(-DKIHALEE_EM1D) 
229
 endif()
232
 endif()
230
 
233
 
231
 ####################
234
 ####################

+ 2
- 0
Modules/LemmaCore/include/LemmaCore View File

13
  **/
13
  **/
14
 
14
 
15
 // Convenience include all of LemmaCore
15
 // Convenience include all of LemmaCore
16
+# pragma once
17
+
16
 #ifndef  LEMMAINCLUDE_INC
18
 #ifndef  LEMMAINCLUDE_INC
17
 #define  LEMMAINCLUDE_INC
19
 #define  LEMMAINCLUDE_INC
18
 #include "ASCIIParser.h"
20
 #include "ASCIIParser.h"

Loading…
Cancel
Save