diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/lib/tng_io.c | 2 | ||||
-rw-r--r-- | src/tests/CMakeLists.txt | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt index 4e46c4e..416e546 100644 --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -4,8 +4,8 @@ if(HAVE_INTTYPES_H) set_property(TARGET tng_io APPEND PROPERTY COMPILE_DEFINITIONS USE_STD_INTTYPES_H) endif() -if(BUILD_FORTRAN) - set_property(TARGET tng_io APPEND PROPERTY COMPILE_DEFINITIONS BUILD_FORTRAN) +if(TNG_BUILD_FORTRAN) + set_property(TARGET tng_io APPEND PROPERTY COMPILE_DEFINITIONS TNG_BUILD_FORTRAN) endif() if(ZLIB_FOUND) diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index 6a5d035..c041472 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -14404,7 +14404,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_box_shape_with_time_write return(stat); } -#ifdef BUILD_FORTRAN +#ifdef TNG_BUILD_FORTRAN /* The following is for calling the library from fortran */ tng_function_status DECLSPECDLLEXPORT tng_trajectory_init_(tng_trajectory_t *tng_data_p) diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 0e4ed12..13e7d88 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -1,4 +1,4 @@ -if(BUILD_COMPRESSION_TESTS) +if(TNG_BUILD_COMPRESSION_TESTS) add_subdirectory(compression) endif() @@ -25,7 +25,7 @@ endif() set_property(TARGET tng_testing PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/tests) -if(BUILD_TNG_EXAMPLES) +if(TNG_BUILD_EXAMPLES) if(OPENMP_FOUND) add_executable(md_openmp md_openmp.c) target_link_libraries(md_openmp tng_io ${OpenMP_LIBS}) @@ -63,7 +63,7 @@ if(BUILD_TNG_EXAMPLES) endif() set_property(TARGET tng_parallel_read PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/examples) - if(BUILD_FORTRAN) + if(TNG_BUILD_FORTRAN) # This does not work due to a bug in CMake. Remove lines below if no fortran compiler is found. enable_language(Fortran OPTIONAL) if(${CMAKE_Fortran_COMPILER_WORKS}) |